Datatables new layout
This commit is contained in:
10
resources/views/components/datatables/buttons/add.blade.php
Normal file
10
resources/views/components/datatables/buttons/add.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<button type="button" class="btn bg-gradient-info btn-add"><i class="fa fa-plus-circle"></i></button>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$('#{{ $model }}-table-header .btn-add').click(function() {
|
||||
url = '{{ $route }}' + '/create/';
|
||||
window.location = url;
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user