- Timestamp:
- 11/23/21 22:01:52 (3 years ago)
- Branches:
- master
- Children:
- dbc5976
- Parents:
- 4d73966
- Location:
- resources/views
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/auth/forgot.blade.php
r4d73966 r0a1fb54 23 23 <hr> 24 24 <p class="text-muted">I remember my password</p> 25 <a href="{{ route("auth. loginShow") }}" class="btn btn-sm btn-outline-light ml-1">Login</a>25 <a href="{{ route("auth.showLogin") }}" class="btn btn-sm btn-outline-light ml-1">Login</a> 26 26 </form> 27 27 <!-- ./ form --> -
resources/views/auth/verify-login.blade.php
r4d73966 r0a1fb54 24 24 25 25 </form> 26 27 26 @endsection -
resources/views/dashboard/departments/index.blade.php
r4d73966 r0a1fb54 52 52 <th>Folders</th> 53 53 <th>Created by</th> 54 <th>Created at</th>55 54 <th>Updated at</th> 56 55 <th>Directory</th> … … 66 65 <td>{{ $department->code }}</td> 67 66 <td>{{ $department->no_of_folders }}</td> 68 <td>{{ $department->getCreatedByName() }}</td> 69 <td>{{ date('d.m.Y - H:i', strtotime($department->created_at)) }}</td> 67 <td>{{ $department->user->username }} 68 <div class="font-weight-light p-1">{{$department->user->name}} {{$department->user->surname}}</div> 69 <div class="font-weight-light p-1">{{ date('d.m.Y - H:i', strtotime($department->created_at)) }}</div> 70 </td> 71 70 72 @if($department->updated_at==NULL) 71 73 <td>/</td> 72 74 @else 73 <td>{{ date('d.m.Y - H:i', strtotime($department->updated_at)) }}</td>75 <td class="font-weight-light p-1">{{ date('d.m.Y - H:i', strtotime($department->updated_at)) }}</td> 74 76 @endif 77 75 78 <!-- Trigger --> 76 79 <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"> -
resources/views/dashboard/folders/files.blade.php
r4d73966 r0a1fb54 70 70 71 71 <p>Files in {{$folder->name}}</p> 72 72 {{-- @dd($files)--}} 73 73 <div class="row"> 74 74 @forelse($files as $file) 75 75 76 <div class="col-xl-3 col-lg-4 col-md-6 col-sm-12"> 76 77 <div class="card app-file-list"> … … 162 163 <div class="modal-content"> 163 164 <div class="modal-header"> 164 <h5 class="modal-title" id="exampleModalCenterTitle">Upload </h5>165 <h5 class="modal-title" id="exampleModalCenterTitle">Upload files to {{$folder->name}}</h5> 165 166 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 166 167 <i class="ti-close"></i> -
resources/views/dashboard/folders/index.blade.php
r4d73966 r0a1fb54 83 83 <a class="dropdown-item" href="javascript:void(0)" data-toggle="modal" data-target="#createModal">Add folder</a> 84 84 @endif 85 @if(auth()->user()->hasPermission('export_data') )85 @if(auth()->user()->hasPermission('export_data') && Request::query('id')==null) 86 86 <a href="{{ route('dashboard.folders.export') }}" class="dropdown-item text-success">Export</a> 87 87 </div> … … 171 171 <p class="badge bg-success-bright text-success">Version: {{$folder->version}}</p> 172 172 <p>Archive ID: {{$folder->arch_id}}</p> 173 <p>Department: {{$folder->department->name}}</p> 173 174 <p>Note: {{$folder->note}}</p> 174 175 <div class="row"> -
resources/views/dashboard/index.blade.php
r4d73966 r0a1fb54 119 119 <th>Name</th> 120 120 <th>Created at</th> 121 <th>Updated at</th>122 121 <th>Folder name</th> 123 122 <th>Folder archive ID</th> … … 165 164 <td>{{ $file->name }}</td> 166 165 <td>{{ date('d.m.Y - H:i', strtotime($file->created_at)) }}</td> 167 @if($file->updated_at==NULL)168 <td>/</td>169 @else170 <td>{{ date('d.m.Y - H:i', strtotime($file->updated_at)) }}</td>171 @endif172 166 <td><a href="{{ route('dashboard.folders.files', ['id' => $file->folder_id]) }}" class="text-linkedin">{{ \App\Models\Folder::find($file->folder_id)->name }}</a></td> 173 167 <td>{{ \App\Models\Folder::find($file->folder_id)->arch_id }}</td> … … 180 174 @if(auth()->user()->hasPermission('manage_all_files')) 181 175 <td> 182 <a href="javascript:void(0)" class="text-secondary" data-toggle="modal" data-target="#editModal_{{$file->id}}" title="Edit">183 <i class="ti-pencil"></i>184 </a>185 176 <a href="{{ route("dashboard.files.downloadFile", ['id' => $file->id]) }}" class="text-danger ml-2"title="Download"> 186 177 <i class="ti-download"></i> … … 244 235 <div class="d-flex justify-content-between align-items-start mb-3"> 245 236 <h6 class="card-title mb-0">Largest departments</h6> 246 <a href="{{route("dashboard.departments.index")}}" class="small text-linkedin">View </a>237 <a href="{{route("dashboard.departments.index")}}" class="small text-linkedin">View all</a> 247 238 </div> 248 239 </div> … … 260 251 261 252 <td> 262 <a href="{{ route("dashboard.folders.index", ['id' => $department->id]) }}" >{{$department->name}}</a>253 <a href="{{ route("dashboard.folders.index", ['id' => $department->id]) }}" class="text-linkedin">{{$department->name}}</a> 263 254 </td> 264 255 <td> -
resources/views/dashboard/settings/index.blade.php
r4d73966 r0a1fb54 70 70 <div class="col-md-1"> 71 71 <div class="form-group"> 72 <label> Current</label>72 <label></label> 73 73 <figure class="avatar avatar-sm mr-2"> 74 74 @if(auth()->user()->avatar==NULL) -
resources/views/dashboard/users/index.blade.php
r4d73966 r0a1fb54 45 45 <th>Name</th> 46 46 <th>Created by</th> 47 <th>Created at</th>48 47 <th>Updated at</th> 49 48 <th>Status</th> … … 81 80 <div class="font-weight-light p-1">{{$user->phone_number}}</div> 82 81 </td> 83 <td>{{ $user->getCreatedByName() }}</td> 84 <td>{{ date('d.m.Y - H:i', strtotime($user->created_at)) }}</td> 82 <td>{{ $user->getCreatedByUsername() }} 83 <div class="font-weight-light p-1">{{$user->getCreatedByName()}}</div> 84 <div class="font-weight-light p-1">{{ date('d.m.Y - H:i', strtotime($user->created_at)) }}</div> 85 </td> 86 85 87 @if($user->updated_at==NULL) 86 88 <td>/</td> … … 88 90 <td>{{ date('d.m.Y - H:i', strtotime($user->updated_at)) }}</td> 89 91 @endif 92 90 93 <td> 91 94 @if(Cache::has('is_online' . $user->id)) … … 99 102 @endif 100 103 </td> 101 @if(auth()->user()->hasPermission('manage_all_users') )104 @if(auth()->user()->hasPermission('manage_all_users') && auth()->user()->id != $user->id) 102 105 @if($user->hasRole("Referent") || $user->hasRole("Viewer") && $user->is_confirmed) 103 106 <td> … … 105 108 <i class="ti-pencil"></i> 106 109 </a> 110 @if ($user->is_active) 111 <a href="javascript:void(0)" data-toggle="modal" data-target="#blockModal_{{$user->id}}" class="text-warning ml-2" title="Block"> 112 <i class="ti-lock"></i> 113 </a> 114 @else 115 <a href="javascript:void(0)" data-toggle="modal" data-target="#unBlockModal_{{$user->id}}" class="text-warning ml-2" title="Unblock"> 116 <i class="ti-unlock"></i> 117 </a> 118 @endif 107 119 <a href="javascript:void(0)" class="text-danger ml-2" data-toggle="modal" data-target="#deleteModal_{{$user->id}}" title="Delete"> 108 120 <i class="ti-trash"></i> 109 121 </a> 122 110 123 </td> 111 124 @else … … 186 199 <div class="col-md-1"> 187 200 <div class="form-group"> 188 <label> Current</label>201 <label></label> 189 202 <figure class="avatar avatar-sm mr-2"> 190 203 @if($user->avatar==NULL) … … 223 236 @method('DELETE') 224 237 <p>Are you sure you want to delete user {{$user->username}} ?</p> 238 <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> 239 <div class="modal-footer"> 240 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 241 </button> 242 <button type="submit" class="btn btn-primary">Save changes</button> 243 </div> 244 </form> 245 </div> 246 247 </div> 248 </div> 249 </div> 250 251 <div class="modal fade" id="blockModal_{{$user->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 252 <div class="modal-dialog modal-dialog-centered" role="document"> 253 <div class="modal-content"> 254 <div class="modal-header"> 255 <h5 class="modal-title" id="exampleModalCenterTitle">Block confirmation</h5> 256 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 257 <i class="ti-close"></i> 258 </button> 259 </div> 260 <div class="modal-body"> 261 <form action="{{ route("dashboard.users.block", $user->id) }}" method="POST"> 262 @csrf 263 @method('patch') 264 <p>Are you sure you want to block user {{$user->username}} ?</p> 265 <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> 266 <div class="modal-footer"> 267 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 268 </button> 269 <button type="submit" class="btn btn-primary">Save changes</button> 270 </div> 271 </form> 272 </div> 273 274 </div> 275 </div> 276 </div> 277 278 279 <div class="modal fade" id="unBlockModal_{{$user->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 280 <div class="modal-dialog modal-dialog-centered" role="document"> 281 <div class="modal-content"> 282 <div class="modal-header"> 283 <h5 class="modal-title" id="exampleModalCenterTitle">Unblock confirmation</h5> 284 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 285 <i class="ti-close"></i> 286 </button> 287 </div> 288 <div class="modal-body"> 289 <form action="{{ route("dashboard.users.unblock", $user->id) }}" method="POST"> 290 @csrf 291 @method('patch') 292 <p>Are you sure you want to block user {{$user->username}} ?</p> 225 293 <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> 226 294 <div class="modal-footer">
Note:
See TracChangeset
for help on using the changeset viewer.