Changeset 120759b for resources/views/dashboard/departments/index.blade.php
- Timestamp:
- 10/15/21 00:21:44 (3 years ago)
- Branches:
- develop, master
- Children:
- d795fa6
- Parents:
- 24a616f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/departments/index.blade.php
r24a616f r120759b 37 37 <tr> 38 38 <th> 39 <div class="custom-control custom-checkbox">40 <input type="checkbox" class="custom-control-input" id="user-list-select-all">41 <label class="custom-control-label" for="user-list-select-all"></label>42 </div>39 {{-- <div class="custom-control custom-checkbox">--}} 40 {{-- <input type="checkbox" class="custom-control-input" id="user-list-select-all">--}} 41 {{-- <label class="custom-control-label" for="user-list-select-all"></label>--}} 42 {{-- </div>--}} 43 43 </th> 44 44 <th>ID</th> … … 77 77 <i class="ti-pencil"></i> 78 78 </a> 79 <a href="javascript:void(0)" class="text-danger ml-2" data-action="{{ route("dashboard. departments.destroy", ["id" => $department->id]) }}" data-method="delete" title="Delete">79 <a href="javascript:void(0)" class="text-danger ml-2" data-action="{{ route("dashboard.categories.destroy", ["id" => $category->id]) }}" data-target="#deleteModal" data-toggle="modal" title="Delete"> 80 80 <i class="ti-trash"></i> 81 81 </a> … … 85 85 </tbody> 86 86 </table> 87 88 <div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-hidden="true"> 89 <div class="modal-dialog modal-dialog-centered" role="document"> 90 <div class="modal-content"> 91 <div class="modal-header"> 92 <h5 class="modal-title" id="exampleModalCenterTitle">Delete confirmation</h5> 93 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 94 <i class="ti-close"></i> 95 </button> 96 </div> 97 <div class="modal-body"> 98 <form action="{{ route('dashboard.departments.destroy', 'id') }}" method="post"> 99 @csrf 100 @method('DELETE') 101 <input id="id" name="id" hidden value=""> 102 <p>Are you sure you want to delete department <b>{{$department->name}}</b> with code <b>{{$department->code}}?</b></p> 103 <div class="modal-footer"> 104 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 105 </button> 106 <button type="submit" class="btn btn-danger">Save changes</button> 107 </div> 108 </form> 109 </div> 110 111 </div> 112 </div> 113 </div> 114 87 115 </div> 88 116 </div> … … 94 122 95 123 @section('script') 124 <script src="{{ url('assets/js/examples/pages/user-list.js') }}"></script> 96 125 <!-- Datatable --> 97 126 <script src="{{ url('vendors/dataTable/dataTables.min.js') }}"></script> 98 127 99 <script src="{{ url('assets/js/examples/pages/user-list.js') }}"></script> 128 <script> 129 $(document).on('click','.delete',function(){ 130 let id = $(this).attr('data-action'); 131 $('#id').val(id); 132 }); 133 </script> 100 134 @endsection
Note:
See TracChangeset
for help on using the changeset viewer.