Changeset 0df7a93 for resources/views/dashboard/users
- 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/users/index.blade.php
re0d3f94 r0df7a93 21 21 </nav> 22 22 <div class="dropdown"> 23 @if(auth()->user()->hasPermission('manage_all_users')) 23 24 <a href="javascript:void(0)" data-toggle="modal" data-target="#createModal" class="btn btn-primary text-white"> 24 25 <i class="fa fa-plus pr-1"></i> New 25 26 </a> 27 @endif 28 @if(auth()->user()->hasPermission('export_data')) 26 29 <a href="{{ route('dashboard.users.export') }}" class="btn btn-success text-white"> 27 30 <i class="fa fa-table pr-1"></i> Export 28 31 </a> 32 @endif 29 33 </div> 30 34 </div> … … 93 97 @endif 94 98 </td> 99 @if(auth()->user()->hasPermission('manage_all_users')) 95 100 @if($user->hasRole("Referent") && $user->is_confirmed) 96 101 <td> … … 98 103 <i class="ti-pencil"></i> 99 104 </a> 100 <a href="javascript:void(0)" class="text-danger ml-2" data- action="{{ route("dashboard.users.destroy", ["id" => $user->id]) }}" data-method="delete" title="Delete">105 <a href="javascript:void(0)" class="text-danger ml-2" data-toggle="modal" data-target="#deleteModal_{{$user->id}}" title="Delete"> 101 106 <i class="ti-trash"></i> 102 107 </a> … … 105 110 <td>/</td> 106 111 @endif 112 @else 113 <td></td> 114 @endif 107 115 </tr> 108 116 … … 199 207 </div> 200 208 209 <div class="modal fade" id="deleteModal_{{$user->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 210 <div class="modal-dialog modal-dialog-centered" role="document"> 211 <div class="modal-content"> 212 <div class="modal-header"> 213 <h5 class="modal-title" id="exampleModalCenterTitle">Delete confirmation</h5> 214 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 215 <i class="ti-close"></i> 216 </button> 217 </div> 218 <div class="modal-body"> 219 <form action="{{ route("dashboard.users.destroy", $user->id) }}" method="POST"> 220 @csrf 221 @method('DELETE') 222 <p>Are you sure you want to delete user {{$user->username}} ?</p> 223 <p>Number of folders created: <a href="{{ route("dashboard.folders.index", ['id' => $user->id]) }}" class="text-linkedin">{{\App\Models\Folder::where('user_id', $user->id)->count()}}</a></p> 224 <div class="modal-footer"> 225 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 226 </button> 227 <button type="submit" class="btn btn-primary">Save changes</button> 228 </div> 229 </form> 230 </div> 231 232 </div> 233 </div> 234 </div> 201 235 @endforeach 202 236 </tbody>
Note:
See TracChangeset
for help on using the changeset viewer.