Changeset c6b84df for resources/views/dashboard/departments/index.blade.php
- Timestamp:
- 10/21/21 23:45:59 (3 years ago)
- Branches:
- develop, master
- Children:
- 4b7e2d3
- Parents:
- 6b95845
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/departments/index.blade.php
r6b95845 rc6b84df 16 16 <ol class="breadcrumb"> 17 17 <li class="breadcrumb-item"> 18 <a href="{{ url(' dashboard/departments') }}">Departments</a>18 <a href="{{ url('/') }}">Dashboard</a> 19 19 </li> 20 20 <li class="breadcrumb-item active" aria-current="page">Departments</li> … … 24 24 <a href="javascript:void(0)" data-toggle="modal" data-target="#createModal" class="btn btn-primary text-white"> 25 25 Add department 26 </a> 27 <a href="{{ route("dashboard.departments.downloadAll") }}" class="btn btn-danger text-white"> 28 <i class="fa fa-download pr-1"></i> Download files 26 29 </a> 27 30 </div> … … 41 44 <th>Name</th> 42 45 <th>Code</th> 46 <th>Folders</th> 43 47 <th>Created by</th> 44 48 <th>Created at</th> … … 55 59 <td>{{ $department->name }}</td> 56 60 <td>{{ $department->code }}</td> 61 <td>{{ $department->folder->count() }}</td> 57 62 <td>{{ $department->getCreatedByName() }}</td> 58 63 <td>{{ date('d.m.Y - H:i', strtotime($department->created_at)) }}</td> … … 63 68 @endif 64 69 <!-- Trigger --> 65 <td>{{ $department->location }} 66 <button class="btn btn-sm btn-primary text-white" data-clipboard-target="#copy_{{ $department->id }}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard" viewBox="0 0 16 16"> 70 <td><button data-clipboard-text="{{$department->location}}" class="btn btn-sm btn-primary text-white" data-toggle="tooltip" data-placement="right" title="{{$department->location}}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard" viewBox="0 0 16 16"> 67 71 <path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"/> 68 72 <path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"/> 69 73 </svg></button> 70 <span type="hidden" id="copy_{{$department->id}}"></span>71 74 </td> 72 75 <td> 73 76 <a href="javascript:void(0)" class="text-secondary" data-toggle="modal" data-target="#editModal_{{$department->id}}" title="Edit"> 74 77 <i class="ti-pencil"></i> 78 </a> 79 <a href="{{ route("dashboard.departments.downloadDepartment", ['id' => $department->id]) }}" class="text-danger ml-2"title="Delete"> 80 <i class="ti-download"></i> 75 81 </a> 76 82 <a href="javascript:void(0)" class="text-danger ml-2" data-toggle="modal" data-target="#deleteModal_{{$department->id}}" title="Delete"> … … 93 99 @method('DELETE') 94 100 <p>Are you sure you want to delete department {{$department->name}} with code: {{$department->code}}?</p> 95 <p>Number of documents associated: {{$department->document()->count()}}</p>101 <p>Number of documents associated: <a href="{{ route("dashboard.folders.index", ['id' => $department->id]) }}" class="text-linkedin">{{$department->folder()->count()}}</a></p> 96 102 <div class="modal-footer"> 97 103 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close … … 133 139 </div> 134 140 </div> 135 <input type="submit" value="Save changes" class="btn btn-primary pull-right m-10"> 141 <br/> 142 <div class="modal-footer"> 143 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 144 </button> 145 <button type="submit" class="btn btn-primary">Save changes</button> 146 </div> 136 147 </form> 137 148 </div> … … 168 179 </div> 169 180 </div> 170 <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10"> 181 <br/> 182 <div class="modal-footer"> 183 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 184 </button> 185 <button type="submit" class="btn btn-primary">Save changes</button> 186 </div> 171 187 </form> 172 188 </div> … … 187 203 188 204 @section('script') 205 206 @yield('script') 207 189 208 <script src="{{ url('assets/js/examples/pages/user-list.js') }}"></script> 190 209 <!-- Datatable -->
Note:
See TracChangeset
for help on using the changeset viewer.