User Management

Manage users, approve registrations, and create admin accounts

Total Users

{{ $activeUsers->count() + $pendingUsers->count() + $suspendedUsers->count() }}

Active Users

{{ $activeUsers->count() }}

Pending Approval

{{ $pendingUsers->count() }}

Suspended

{{ $suspendedUsers->count() }}

@if($pendingUsers->count() > 0)

Pending Registrations

{{ $pendingUsers->count() }} waiting
@foreach($pendingUsers as $user) @endforeach
User Role Channel Registered Actions
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}
{{ $user->email }}
@php $roleDisplay = match($user->role) { 'admin' => ['text' => 'Admin', 'class' => 'bg-purple-100 text-purple-700'], 'staff' => ['text' => 'Staff', 'class' => 'bg-cyan-100 text-cyan-700'], 'travel_agent' => ['text' => 'Travel Agent', 'class' => 'bg-blue-100 text-blue-700'], 'recruitment_agent' => ['text' => 'Recruitment Agent', 'class' => 'bg-green-100 text-green-700'], default => ['text' => ucfirst($user->role), 'class' => 'bg-gray-100 text-gray-700'], }; @endphp {{ $roleDisplay['text'] }} @if($user->agent && $user->agent->bookingChannel) {{ $user->agent->bookingChannel->name }} @else N/A @endif {{ $user->created_at->format('M d, Y') }}
@csrf @method('PATCH')
@csrf @method('DELETE')
@endif

Active Users

@forelse($activeUsers as $user) @empty @endforelse
User Role Channel/Agencies Joined Actions
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}
{{ $user->email }}
@php $roleDisplay = match($user->role) { 'admin' => ['text' => 'Admin', 'class' => 'bg-purple-100 text-purple-700'], 'staff' => ['text' => 'Staff', 'class' => 'bg-cyan-100 text-cyan-700'], 'travel_agent' => ['text' => 'Travel Agent', 'class' => 'bg-blue-100 text-blue-700'], 'recruitment_agent' => ['text' => 'Recruitment Agent', 'class' => 'bg-green-100 text-green-700'], default => ['text' => ucfirst($user->role), 'class' => 'bg-gray-100 text-gray-700'], }; @endphp {{ $roleDisplay['text'] }} @if($user->role === 'staff') @if($user->assignedAgencies->count() > 0) {{ $user->assignedAgencies->count() }} {{ Str::plural('agency', $user->assignedAgencies->count()) }} @else No assignments @endif @elseif($user->agent && $user->agent->bookingChannel) {{ $user->agent->bookingChannel->name }} @else N/A @endif {{ $user->created_at->format('M d, Y') }}
@if($user->role !== 'admin')
@csrf @method('PATCH')
@csrf @method('DELETE')
@else Protected @endif

No active users

{{ $activeUsers->links() }}
@if($suspendedUsers->count() > 0)

Suspended Users

@foreach($suspendedUsers as $user) @endforeach
User Role Channel/Agencies Suspended Actions
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}
{{ $user->email }}
@php $roleDisplay = match($user->role) { 'admin' => ['text' => 'Admin', 'class' => 'bg-purple-100 text-purple-700'], 'staff' => ['text' => 'Staff', 'class' => 'bg-cyan-100 text-cyan-700'], 'travel_agent' => ['text' => 'Travel Agent', 'class' => 'bg-blue-100 text-blue-700'], 'recruitment_agent' => ['text' => 'Recruitment Agent', 'class' => 'bg-green-100 text-green-700'], default => ['text' => ucfirst($user->role), 'class' => 'bg-gray-100 text-gray-700'], }; @endphp {{ $roleDisplay['text'] }} @if($user->role === 'staff') @if($user->assignedAgencies->count() > 0) {{ $user->assignedAgencies->count() }} {{ Str::plural('agency', $user->assignedAgencies->count()) }} @else No assignments @endif @elseif($user->agent && $user->agent->bookingChannel) {{ $user->agent->bookingChannel->name }} @else N/A @endif {{ $user->updated_at->format('M d, Y') }}
@csrf @method('PATCH')
@csrf @method('DELETE')
@endif