Changeset 0df7a93 for resources/views/dashboard/departments/index.blade.php
- Timestamp:
- 10/24/21 20:55:11 (3 years ago)
- Branches:
- develop, master
- Children:
- 7043def
- Parents:
- e0d3f94
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/departments/index.blade.php
re0d3f94 r0df7a93 20 20 </nav> 21 21 <div class="dropdown"> 22 @if(auth()->user()->hasPermission('manage_all_departments')) 22 23 <a href="javascript:void(0)" data-toggle="modal" data-target="#createModal" class="btn btn-primary text-white"> 23 24 <i class="fa fa-plus pr-1"></i> New 24 25 </a> 26 @endif 27 28 @if(auth()->user()->hasPermission('download_data')) 25 29 <a href="{{ route("dashboard.departments.downloadAll") }}" class="btn btn-danger text-white"> 26 30 <i class="fa fa-download pr-1"></i> Download 27 31 </a> 32 @endif 33 @if(auth()->user()->hasPermission('export_data')) 28 34 <a href="{{ route('dashboard.departments.export') }}" class="btn btn-success text-white"> 29 35 <i class="fa fa-table pr-1"></i> Export</a> 36 @endif 30 37 </div> 31 38 </div> … … 73 80 </svg></button> 74 81 </td> 82 @if(auth()->user()->hasPermission('manage_all_departments')) 75 83 <td> 76 84 <a href="javascript:void(0)" class="text-secondary" data-toggle="modal" data-target="#editModal_{{$department->id}}" title="Edit"> 77 85 <i class="ti-pencil"></i> 78 86 </a> 79 <a href="{{ route("dashboard.departments.downloadDepartment", ['id' => $department->id]) }}" class="text-danger ml-2"title="Delete"> 87 @if(auth()->user()->hasPermission('download_data')) 88 <a href="{{ route("dashboard.departments.downloadDepartment", ['id' => $department->id]) }}" class="text-danger ml-2"title="Download"> 80 89 <i class="ti-download"></i> 81 90 </a> 91 @endif 82 92 <a href="javascript:void(0)" class="text-danger ml-2" data-toggle="modal" data-target="#deleteModal_{{$department->id}}" title="Delete"> 83 93 <i class="ti-trash"></i> 84 94 </a> 85 95 </td> 96 @else 97 <td></td> 98 @endif 86 99 </tr> 87 100 <div class="modal fade" id="deleteModal_{{$department->id}}" tabindex="-1" role="dialog" aria-hidden="true"> … … 99 112 @method('DELETE') 100 113 <p>Are you sure you want to delete department {{$department->name}} with code: {{$department->code}}?</p> 101 <p>Number of documents associated: <a href="{{ route("dashboard.folders.index", ['id' => $department->id]) }}" class="text-linkedin">{{$department->folder()->count()}}</a></p>114 <p>Number of folders associated: <a href="{{ route("dashboard.folders.index", ['id' => $department->id]) }}" class="text-linkedin">{{$department->folder()->count()}}</a></p> 102 115 <div class="modal-footer"> 103 116 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close
Note:
See TracChangeset
for help on using the changeset viewer.