{{-- resources/views/admin/users/index.blade.php - Enhanced version --}}

{{ __('User Management') }}

Total Users
{{ $stats['total'] }}
Pending
{{ $stats['pending'] }}
@if($stats['pending'] > 0) Review Now @endif
Approved
{{ $stats['approved'] }}
Admin
{{ $stats['admin'] }}
Staff
{{ $stats['kepsek'] + $stats['guru'] }}
Students
{{ $stats['siswa'] }}
@forelse($users as $user) @empty @endforelse
User Role School Status Last Login Actions
{{ $user->name }}
{{ $user->name }}
{{ $user->email }}
@if($user->nip_nis)
{{ $user->nip_nis }}
@endif
{{ ucfirst($user->role) }} {{ $user->school->name ?? '-' }} {{ ucfirst($user->status) }} @if(!$user->is_active) Inactive @endif {{ $user->last_login ? $user->last_login->diffForHumans() : 'Never' }}
View @if($user->isPending()) |
@csrf
| @else | Edit @endif @if($user->id !== auth()->id()) |
@csrf
|
@csrf
|
@csrf @method('DELETE')
@else Current User @endif
No users found.
{{ $users->appends(request()->query())->links() }}