Changeset 24a616f for resources/views
- Timestamp:
- 10/13/21 15:44:57 (3 years ago)
- Branches:
- develop, master
- Children:
- 120759b
- Parents:
- 194a359
- Location:
- resources/views
- Files:
-
- 8 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/departments/create.blade.php
r194a359 r24a616f 29 29 <h6 class="card-title">New department</h6> 30 30 <form action="{{ route("dashboard.departments.store") }}" method="post" accept-charset="utf-8"> 31 @csrf 31 32 <div class="row"> 32 @csrf33 33 <div class="col-md-6"> 34 34 <div class="form-group"> -
resources/views/dashboard/departments/edit.blade.php
r194a359 r24a616f 1 1 @extends('layouts.app') 2 2 3 @section("title", " departments - Edit user")3 @section("title", "Departments - Edit department") 4 4 5 @section('pageTitle', 'Edit user')5 @section('pageTitle', 'Edit department') 6 6 7 7 @section('content') -
resources/views/dashboard/departments/index.blade.php
r194a359 r24a616f 36 36 <thead> 37 37 <tr> 38 {{-- <th>--}} 39 {{-- <div class="custom-control custom-checkbox">--}} 40 {{-- <input type="checkbox" class="custom-control-input" id="user-list-select-all">--}} 41 {{-- <label class="custom-control-label" for="user-list-select-all"></label>--}} 42 {{-- </div>--}} 43 {{-- </th>--}} 38 <th> 39 <div class="custom-control custom-checkbox"> 40 <input type="checkbox" class="custom-control-input" id="user-list-select-all"> 41 <label class="custom-control-label" for="user-list-select-all"></label> 42 </div> 43 </th> 44 44 <th>ID</th> 45 45 <th>Name</th> 46 46 <th>Code</th> 47 47 <th>Created by</th> 48 <th>Creation date</th> 48 <th>Created at</th> 49 <th>Updated at</th> 50 <th>Directory</th> 49 51 <th>Actions</th> 50 52 </tr> … … 53 55 @foreach($departments as $department) 54 56 <tr> 57 <td></td> 55 58 <td>{{$department->id }}</td> 56 59 <td>{{ $department->name }}</td> 57 60 <td>{{ $department->code }}</td> 58 61 <td>{{ $department->getCreatedByName() }}</td> 59 <td>{{ date('d.m.Y', strtotime($department->created_at)) }}</td> 62 <td>{{ date('d.m.Y - H:i', strtotime($department->created_at)) }}</td> 63 @if($department->updated_at==NULL) 64 <td>/</td> 65 @else 66 <td>{{ date('d.m.Y - H:i', strtotime($department->updated_at)) }}</td> 67 @endif 68 <!-- Trigger --> 69 <td id="copy_{{ $department->id }}" value="{{$department->location}}">{{$department->location}} 70 <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"> 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"/> 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"/> 73 </svg></button> 74 </td> 60 75 <td> 61 76 <a href="{{ route("dashboard.departments.edit", ["id" => $department->id]) }}" class="text-secondary" data-toggle="tooltip" title="Edit"> -
resources/views/dashboard/settings/index.blade.php
r194a359 r24a616f 35 35 <div class="card-body"> 36 36 <h6 class="card-title">Account</h6> 37 <form action="{{ route("dashboard.users.editUserData", ["id" =>$user->id]) }}" method="post" accept-charset="utf-8" >37 <form action="{{ route("dashboard.users.editUserData", ["id" =>$user->id]) }}" method="post" accept-charset="utf-8" enctype='multipart/form-data'> 38 38 @method("patch") 39 39 @csrf … … 53 53 </div> 54 54 <div class="row"> 55 {{-- <div class="col-md-6">--}}56 {{-- <div class="form-group">--}}57 {{-- <label>Email</label>--}}58 {{-- <input type="email" name="email" value="{{ $user->email }}" class="form-control" placeholder="E-mail" required>--}}59 {{-- </div>--}}60 {{-- </div>--}}61 55 <div class="col-md-6"> 62 56 <div class="form-group"> … … 65 59 </div> 66 60 </div> 61 <div class="col-md-5"> 62 <div class="form-group"> 63 <label>Avatar</label> 64 <input type="file" name="avatar" value="{{ $user->avatar }}" class="form-control" accept="image/*"> 65 </div> 66 </div> 67 <div class="col-md-1"> 68 <div class="form-group"> 69 <label>Current</label> 70 @include('dashboard.partials.avatar') 71 </div> 72 </div> 67 73 </div> 68 74 <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10"> -
resources/views/dashboard/users/create.blade.php
r194a359 r24a616f 28 28 <div class="card-body"> 29 29 <h6 class="card-title">User account data</h6> 30 <form action="{{ route("dashboard.users.store") }}" method="post" accept-charset="utf-8" >30 <form action="{{ route("dashboard.users.store") }}" method="post" accept-charset="utf-8" enctype='multipart/form-data'> 31 31 @csrf 32 32 <div class="row"> … … 77 77 78 78 </div> 79 80 <div class="row"> 81 <div class="col-md-6"> 82 <div class="form-group"> 83 <label>Avatar</label> 84 <input type="file" name="avatar" value="{{ old('avatar') }}" class="form-control" accept="image/*"> 85 </div> 86 </div> 87 </div> 79 88 <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10"> 80 89 </form> -
resources/views/dashboard/users/edit.blade.php
r194a359 r24a616f 28 28 <div class="card-body"> 29 29 <h6 class="card-title">User account data</h6> 30 <form action="{{ route("dashboard.users.edit", ["id" =>$user->id]) }}" method="post" accept-charset="utf-8" >30 <form action="{{ route("dashboard.users.edit", ["id" =>$user->id]) }}" method="post" accept-charset="utf-8" enctype='multipart/form-data'> 31 31 @method("patch") 32 32 @csrf … … 78 78 </div> 79 79 </div> 80 <div class="row"> 81 <div class="col-md-5"> 82 <div class="form-group"> 83 <label>Avatar</label> 84 <input type="file" name="avatar" value="{{ $user->avatar }}" class="form-control" accept="image/*"> 85 </div> 86 </div> 87 <div class="col-md-1"> 88 <div class="form-group"> 89 <label>Current</label> 90 @include('dashboard.partials.avatar') 91 </div> 92 </div> 93 </div> 80 94 <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10"> 81 95 </form> -
resources/views/dashboard/users/index.blade.php
r194a359 r24a616f 8 8 <!-- Datatable --> 9 9 <link rel="stylesheet" href="{{ url('vendors/dataTable/dataTables.min.css') }}" type="text/css"> 10 10 11 @endsection 11 12 … … 36 37 <thead> 37 38 <tr> 38 <th>ID</th> 39 <th>Status</th> 39 <th> 40 <div class="custom-control custom-checkbox"> 41 <input type="checkbox" class="custom-control-input" id="user-list-select-all"> 42 <label class="custom-control-label" for="user-list-select-all"></label> 43 </div> 44 </th> 45 <th>State</th> 40 46 <th>Username</th> 41 47 <th>Name</th> 42 48 <th>Email</th> 43 49 <th>Phone Number</th> 44 <th> Registration Date</th>50 <th>Created at</th> 45 51 <th>Role</th> 52 <th>Status</th> 53 <th>Last seen</th> 46 54 <th>Actions</th> 47 55 </tr> … … 50 58 @foreach($users as $user) 51 59 <tr> 52 <td> {{$user->id }}</td>60 <td></td> 53 61 <td> 54 62 @if($user->is_confirmed) … … 63 71 </td> 64 72 <td> 65 <a href="#">{{$user->name .' '. $user->surname}}</a> 73 @include('dashboard.partials.avatar') 74 {{$user->username}} 66 75 </td> 67 <td>{{$user-> username}}</td>76 <td>{{$user->name .' '. $user->surname}}</td> 68 77 <td>{{$user->email}}</td> 69 78 <td>{{$user->mobile_number}}</td> 70 79 <td>{{ date('d.m.Y', strtotime($user->created_at)) }}</td> 71 80 <td>{{ $user->role->name }}</td> 81 <td> 82 @if(Cache::has('is_online' . $user->id)) 83 <span class="text-success">Online</span> 84 @else 85 <span class="text-secondary">Offline</span> 86 @endif 87 </td> 88 @if($user->last_seen==NULL) 89 <td>Never logged in</td> 90 @else 91 <td>{{ \Carbon\Carbon::parse($user->last_seen)->diffForHumans() }}</td> 92 @endif 72 93 @if($user->hasRole("Referent") && $user->is_confirmed) 73 94 <td> … … 97 118 98 119 @section('script') 120 <script src="{{ url('assets/js/examples/pages/user-list.js') }}"></script> 99 121 <!-- Datatable --> 100 122 <script src="{{ url('vendors/dataTable/dataTables.min.js') }}"></script> 101 102 <script src="{{ url('assets/js/examples/pages/user-list.js') }}"></script>103 123 @endsection -
resources/views/layouts/alert.blade.php
r194a359 r24a616f 16 16 new Toast({ 17 17 message: "{{session()->get("alert.message")}}", 18 type: {{session()->get("alert.type")}}18 type: '{{session()->get("alert.type")}}' 19 19 }); 20 21 20 22 </script> 21 23 @endif -
resources/views/layouts/app.blade.php
r194a359 r24a616f 7 7 <title>@yield('title')</title> 8 8 9 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> 9 {{-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>--}} 10 10 11 <!-- Favicon --> 11 12 <link rel="shortcut icon" href="{{ url('assets/media/images/favicon.png') }}"/> … … 14 15 <link rel="stylesheet" href="{{ url('vendors/bundle.css') }}" type="text/css"> 15 16 16 <!-- App styles --> 17 @yield('head') 18 19 <!-- App styles --> 17 20 <link rel="stylesheet" href="{{ url('assets/css/app.min.css') }}" type="text/css"> 18 21 </head> … … 80 83 <!-- END: User Menu --> 81 84 82 <!-- BEGIN: Settings -->83 <div class="sidebar" id="settings">84 <div class="card">85 <div class="card-body">86 <h6 class="card-title">Settings</h6>87 <ul class="list-group list-group-flush">88 <li class="list-group-item pl-0 pr-0">89 <div class="custom-control custom-switch">90 <input type="checkbox" class="custom-control-input" id="customSwitch1" checked>91 <label class="custom-control-label" for="customSwitch1">Allow notifications.</label>92 </div>93 </li>94 <li class="list-group-item pl-0 pr-0">95 <div class="custom-control custom-switch">96 <input type="checkbox" class="custom-control-input" id="customSwitch2">97 <label class="custom-control-label" for="customSwitch2">Hide user requests</label>98 </div>99 </li>100 <li class="list-group-item pl-0 pr-0">101 <div class="custom-control custom-switch">102 <input type="checkbox" class="custom-control-input" id="customSwitch3" checked>103 <label class="custom-control-label" for="customSwitch3">Speed up demands</label>104 </div>105 </li>106 <li class="list-group-item pl-0 pr-0">107 <div class="custom-control custom-switch">108 <input type="checkbox" class="custom-control-input" id="customSwitch4" checked>109 <label class="custom-control-label" for="customSwitch4">Hide menus</label>110 </div>111 </li>112 <li class="list-group-item pl-0 pr-0">113 <div class="custom-control custom-switch">114 <input type="checkbox" class="custom-control-input" id="customSwitch5">115 <label class="custom-control-label" for="customSwitch5">Remember next visits</label>116 </div>117 </li>118 <li class="list-group-item pl-0 pr-0">119 <div class="custom-control custom-switch">120 <input type="checkbox" class="custom-control-input" id="customSwitch6">121 <label class="custom-control-label" for="customSwitch6">Enable report122 generation.</label>123 </div>124 </li>125 </ul>126 </div>127 </div>128 </div>129 <!-- END: Settings -->130 131 85 </div> 132 86 <!-- END: Sidebar Group --> … … 169 123 <!-- end::header fullscreen --> 170 124 171 <!-- begin::header search -->172 <li class="nav-item">173 <a href="#" class="nav-link" title="Search" data-toggle="dropdown">174 <i data-feather="search"></i>175 </a>176 <div class="dropdown-menu p-2 dropdown-menu-right">177 <form>178 <div class="input-group">179 <input type="text" class="form-control" placeholder="Search">180 <div class="input-group-prepend">181 <button class="btn" type="button">182 <i data-feather="search"></i>183 </button>184 </div>185 </div>186 </form>187 </div>188 </li>189 <!-- end::header search -->190 191 <!-- begin::header notification dropdown -->192 <li class="nav-item dropdown">193 <a href="#" class="nav-link nav-link-notify" title="Notifications" data-toggle="dropdown">194 <i data-feather="bell"></i>195 </a>196 <div class="dropdown-menu dropdown-menu-right dropdown-menu-big">197 <div class="bg-dark p-4 text-center d-flex justify-content-between align-items-center">198 <h5 class="mb-0">Notifications</h5>199 <small class="opacity-7">1 unread notifications</small>200 </div>201 <div>202 <ul class="list-group list-group-flush">203 <li>204 <a href="#" class="list-group-item d-flex align-items-center hide-show-toggler">205 <div>206 <figure class="avatar mr-2">207 <span208 class="avatar-title bg-success-bright text-success rounded-circle">209 <i class="ti-user"></i>210 </span>211 </figure>212 </div>213 <div class="flex-grow-1">214 <p class="mb-0 line-height-20 d-flex justify-content-between">215 New customer registered216 <i title="Mark as read" data-toggle="tooltip"217 class="hide-show-toggler-item fa fa-circle-o font-size-11"></i>218 </p>219 <span class="text-muted small">20 min ago</span>220 </div>221 </a>222 </li>223 <li class="text-divider small pb-2 pl-3 pt-3">224 <span>Old notifications</span>225 </li>226 <li>227 <a href="#" class="list-group-item d-flex align-items-center hide-show-toggler">228 <div>229 <figure class="avatar mr-2">230 <span231 class="avatar-title bg-warning-bright text-warning rounded-circle">232 <i class="ti-package"></i>233 </span>234 </figure>235 </div>236 <div class="flex-grow-1">237 <p class="mb-0 line-height-20 d-flex justify-content-between">238 New Order Recieved239 <i title="Mark as unread" data-toggle="tooltip"240 class="hide-show-toggler-item fa fa-check font-size-11"></i>241 </p>242 <span class="text-muted small">45 sec ago</span>243 </div>244 </a>245 </li>246 <li>247 <a href="#"248 class="list-group-item d-flex align-items-center hide-show-toggler">249 <div>250 <figure class="avatar mr-2">251 <span class="avatar-title bg-danger-bright text-danger rounded-circle">252 <i class="ti-server"></i>253 </span>254 </figure>255 </div>256 <div class="flex-grow-1">257 <p class="mb-0 line-height-20 d-flex justify-content-between">258 Server Limit Reached!259 <i title="Mark as unread" data-toggle="tooltip"260 class="hide-show-toggler-item fa fa-check font-size-11"></i>261 </p>262 <span class="text-muted small">55 sec ago</span>263 </div>264 </a>265 </li>266 <li>267 <a href="#"268 class="list-group-item d-flex align-items-center hide-show-toggler">269 <div>270 <figure class="avatar mr-2">271 <span class="avatar-title bg-info-bright text-info rounded-circle">272 <i class="ti-layers"></i>273 </span>274 </figure>275 </div>276 <div class="flex-grow-1">277 <p class="mb-0 line-height-20 d-flex align-items-center justify-content-between">278 Apps are ready for update279 <i title="Mark as unread" data-toggle="tooltip"280 class="hide-show-toggler-item fa fa-check font-size-11"></i>281 </p>282 <span class="text-muted small">Yesterday</span>283 </div>284 </a>285 </li>286 </ul>287 </div>288 <div class="p-2 text-right border-top">289 <ul class="list-inline small">290 <li class="list-inline-item mb-0">291 <a href="#">Mark All Read</a>292 </li>293 </ul>294 </div>295 </div>296 </li>297 <!-- end::header notification dropdown -->298 299 125 <!-- begin::user menu --> 300 126 <li class="nav-item dropdown"> 301 127 <a href="#" class="nav-link" title="User menu" data-sidebar-target="#user-menu"> 302 128 <span class="mr-2 d-sm-inline d-none">{{auth()->user()->getFullName()}}</span> 303 </a> 304 </li> 129 @include('dashboard.partials.avatar') 130 </a> 131 </li> 305 132 <!-- end::user menu --> 306 133 … … 334 161 </a> 335 162 </li> 336 @if(auth()->user()->hasPermission("access_all_users")) 337 <li> 338 <a href="{{ route("dashboard.users.index") }}" class="nav-link {{ request()->is(['dashboard/users', 'dashboard/users/*']) ? 'active' : '' }}" data-toggle="tooltip" 339 data-placement="right" title="Users"> 340 <i data-feather="users"></i> 341 </a> 342 </li> 163 @if(auth()->user()->hasPermission("manage_all_users")) 164 <li> 165 <a href="{{ route("dashboard.users.index") }}" class="nav-link {{ request()->is(['dashboard/users', 'dashboard/users/*']) ? 'active' : '' }}" data-toggle="tooltip" 166 data-placement="right" title="Users"> 167 <i data-feather="users"></i> 168 </a> 169 </li> 170 @endif 171 @if(auth()->user()->hasPermission("manage_all_departments")) 172 <li> 173 <a href="{{route("dashboard.departments.index")}}" data-toggle="tooltip" 174 data-placement="right" title="Departments"> 175 <i data-feather="layers"></i> 176 </a> 177 </li> 178 @endif 179 @if(auth()->user()->hasPermission("manage_all_documents")) 180 <li> 181 <a href="{{route("dashboard.documents.index")}}" data-toggle="tooltip" 182 data-placement="right" title="Documents"> 183 <i data-feather="file-text"></i> 184 </a> 185 </li> 343 186 @endif 344 187 <li> 345 <a href="#" data-toggle="tooltip" 346 data-placement="right" title="Files" 347 data-nav-target="#components"> 348 <i data-feather="layers"></i> 349 </a> 350 </li> 351 @if(auth()->user()->hasPermission("access_all_departments")) 352 <li> 353 <a href="{{route("dashboard.departments.index")}}" data-toggle="tooltip" 354 data-placement="right" title="Departments"> 355 <i data-feather="layers"></i> 356 </a> 357 </li> 358 @endif 188 <a href="#" data-toggle="tooltip" data-placement="right" title="Ecommerce" 189 data-nav-target="#ecommerce"> 190 <i data-feather="shopping-cart"></i> 191 </a> 192 </li> 359 193 </ul> 360 194 </div> … … 374 208 <div>© {{ date('Y') }}<a href="{{route("dashboard.index")}}" target="_blank"> SaveSpace</a></div> 375 209 <div> 376 377 210 </div> 378 211 </footer> 379 212 <!-- end::footer --> 380 381 213 </div> 382 214 … … 391 223 <!-- App scripts --> 392 224 <script src="{{ url('assets/js/app.js') }}"></script> 393 <script src="{{url('assets/js/Toast.js')}}"></script> 225 <!-- 3. Instantiate clipboard by passing a string selector --> 226 <script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.8/clipboard.min.js"></script> 227 <script> 228 var clipboard = new ClipboardJS('.btn'); 229 </script> 230 @yield('script') 231 394 232 @include("layouts.alert") 233 234 395 235 </body> 396 236 </html>
Note:
See TracChangeset
for help on using the changeset viewer.