Changeset 0df7a93 for resources/views/dashboard/folders/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/folders/index.blade.php
re0d3f94 r0df7a93 9 9 <div class="card"> 10 10 <div class="card-body"> 11 @if(auth()->user()->hasPermission('manage_all_folders')) 11 12 <a href="javascript:void(0)" class="btn btn-secondary btn-block file-upload-btn text-white" data-toggle="modal" data-target="#createModal"> 12 13 Add folder 13 14 </a> 15 @endif 14 16 </div> 15 17 <div class="app-sidebar-menu"> … … 62 64 <div class="action-left"> 63 65 <ul class="list-inline"> 66 @if(auth()->user()->hasPermission('manage_all_folders')) 64 67 <li class="list-inline-item mb-0"> 65 68 <a href="#" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown"> 66 69 <i data-feather="plus" class="mr-1"></i> 67 A tions70 Actions 68 71 </a> 69 72 <div class="dropdown-menu"> 70 73 <a class="dropdown-item" href="javascript:void(0)" data-toggle="modal" data-target="#createModal">Add folder</a> 74 @endif 75 @if(auth()->user()->hasPermission('export_data')) 71 76 <a href="{{ route('dashboard.folders.export') }}" class="dropdown-item text-success">Export</a> 72 77 </div> 73 78 </li> 79 @endif 74 80 <li class="list-inline-item mb-0"> 75 81 <a href="#" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown">Departments</a> … … 139 145 <div class="dropdown-menu dropdown-menu-right"> 140 146 <a href="{{ route("dashboard.folders.files", ["id" => $folder->id]) }}" class="dropdown-item">View Files</a> 147 @if(auth()->user()->hasPermission('manage_all_folders')) 141 148 <a href="javascript:void(0)" class="dropdown-item" data-toggle="modal" data-target="#editModal_{{$folder->id}}">Edit</a> 149 @endif 150 @if(auth()->user()->hasPermission('download_data')) 142 151 <a href="{{ route("dashboard.folders.downloadFolder", ['id' => $folder->id]) }}" class="dropdown-item">Download</a> 143 <button class="dropdown-item action-dropdown-item" 152 @endif 153 @if(auth()->user()->hasPermission('manage_all_folders')) 154 <button class="dropdown-item action-dropdown-item" 144 155 href="javascript:void(0)" onclick="toggleImportant({{$folder->id}})"> 145 156 @if($folder->is_important) … … 149 160 @endif 150 161 </button> 162 @endif 163 @if(auth()->user()->hasPermission('manage_all_folders')) 151 164 <a href="javascript:void(0)" class="dropdown-item" data-toggle="modal" data-target="#deleteModal_{{$folder->id}}">Delete</a> 165 @endif 152 166 </div> 153 167 </div>
Note:
See TracChangeset
for help on using the changeset viewer.