Changeset 24a616f for resources/views/dashboard
- Timestamp:
- 10/13/21 15:44:57 (3 years ago)
- Branches:
- develop, master
- Children:
- 120759b
- Parents:
- 194a359
- Location:
- resources/views/dashboard
- Files:
-
- 7 added
- 7 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
Note:
See TracChangeset
for help on using the changeset viewer.