Changeset 24a616f for resources/views/dashboard/users
- Timestamp:
- 10/13/21 15:44:57 (3 years ago)
- Branches:
- develop, master
- Children:
- 120759b
- Parents:
- 194a359
- Location:
- resources/views/dashboard/users
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.