Logout in-active users and dont respond to resets or logins
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<a href="{{ url('ftn/system') }}" class="btn btn-danger">Cancel</a>
|
||||
<a href="{{ url('user/list') }}" class="btn btn-danger">Cancel</a>
|
||||
@can('admin',$o)
|
||||
<button type="submit" name="submit" class="btn btn-success mr-0 float-end">@if ($o->exists)Save @else Add @endif</button>
|
||||
@endcan
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<div class="col-9">
|
||||
<p>Current Users:</p>
|
||||
<table class="table monotable">
|
||||
<thead>
|
||||
@@ -13,6 +13,7 @@
|
||||
<th>ID</th>
|
||||
<th>Email</th>
|
||||
<th>Name</th>
|
||||
<th>Active</th>
|
||||
<th>Verified</th>
|
||||
<th>Last On</th>
|
||||
</tr>
|
||||
@@ -21,7 +22,7 @@
|
||||
<tbody>
|
||||
@can('admin',(new \App\Models\User))
|
||||
<tr>
|
||||
<td colspan="5"><a href="{{ url('user/addedit') }}">Add New User</a></td>
|
||||
<td colspan="6"><a href="{{ url('user/addedit') }}">Add New User</a></td>
|
||||
</tr>
|
||||
@endcan
|
||||
@foreach (\App\Models\User::orderBy('email')->cursor() as $oo)
|
||||
@@ -29,8 +30,9 @@
|
||||
<td><a href="{{ url('user/addedit',[$oo->id]) }}">{{ $oo->id }}</a></td>
|
||||
<td>{{ $oo->email }}</td>
|
||||
<td>{{ $oo->name }}</td>
|
||||
<td>{{ $oo->active ? 'YES' : 'NO' }}</td>
|
||||
<td>{{ $oo->email_verified_at ? $oo->email_verified_at->format('Y-m-d') : '-' }}</td>
|
||||
<td>{{-- $oo->last_on --}}TBA</td>
|
||||
<td>{{ $oo->last_on ? $oo->last_on->toDateTimeString() : 'Unknown' }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user