Manage all users account here
| Name | Role | Branch | Approval Status | Last seen date | Actions | ||
|---|---|---|---|---|---|---|---|
| {{ $user->full_name }} | {{ $user->email }} | {{ strtoupper($user->user_type) }} | {{ $user->branch->name ?? 'Ikeja' }} | @php $approval = strtolower($user->approval_status ?? 'pending'); $approvalLabel = ucwords(str_replace('_', ' ', $approval)); $approvalClass = match ($approval) { 'approved' => 'success', 'rejected' => 'danger', default => 'pending', }; @endphp {{ $approvalLabel }} | {{ $user->last_seen_date ? $user->last_seen_date->format('M d, Y') : 'N/A' }} | @if (in_array(auth()->user()->role, [ \App\Enums\AdminRoles::MANAGER->value, \App\Enums\AdminRoles::REGIONAL_MANAGER->value, \App\Enums\AdminRoles::SUPER_ADMIN->value, ])) @endif View | |
| No pending approvals found. | |||||||