@extends('layouts.admin') @section('title', 'Unified User Management') @section('page-title', 'Platform User Management & Access Control') @section('content')
Total Accounts {{ $totalUsers }}
Active Users {{ $activeUsers }}
Pending Verification {{ $pendingUsers }}
Suspended {{ $suspendedUsers }}
Jobseekers / Employers {{ $jobseekersCount }} / {{ $employersCount }}
@php $roles = [ 'all' => 'All Roles', 'jobseeker' => 'Jobseekers', 'employer' => 'Employers', 'district_officer' => 'District Officers', 'admin' => 'Admins', ]; @endphp @foreach($roles as $rKey => $rLabel) {{ $rLabel }} @endforeach
Export CSV Broadcast Email
@if (session('temporary_password'))
Password Reset Generated A one-time temporary password was assigned. User must change it upon next login:
{{ session('temporary_password') }}
@endif
@forelse($users as $user) @empty @endforelse
Account Identity Role District Status Security Flags Registered Actions
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}
{{ $user->email }} @if($user->registration_id) • {{ $user->registration_id }} @endif
@php $roleBadge = match($user->role) { 'super_admin', 'superadmin' => ['bg' => 'rgba(239, 68, 68, 0.15)', 'color' => '#dc2626', 'label' => 'Super Admin'], 'admin' => ['bg' => 'rgba(124, 58, 237, 0.15)', 'color' => '#7c3aed', 'label' => 'Admin'], 'district_officer' => ['bg' => 'rgba(14, 165, 233, 0.15)', 'color' => '#0284c7', 'label' => 'District Officer'], 'employer' => ['bg' => 'rgba(16, 185, 129, 0.15)', 'color' => '#059669', 'label' => 'Employer'], default => ['bg' => 'rgba(0, 102, 255, 0.15)', 'color' => '#0284c7', 'label' => 'Jobseeker'], }; @endphp {{ $roleBadge['label'] }} {{ $user->assigned_district ?: ($user->jobseekerProfile?->district ?: ($user->employerProfile?->district ?: '—')) }} @if($user->status === 'active') Active @elseif($user->status === 'suspended') Suspended @else {{ ucfirst(str_replace('_', ' ', $user->status)) }} @endif @if($user->must_change_password) Force Reset @else Normal @endif {{ $user->created_at ? $user->created_at->format('d M Y') : '—' }}
View @if(Auth::id() !== $user->id)
@csrf
@endif
No user accounts found matching your selected search or filter criteria.
@if($users->hasPages())
{{ $users->links() }}
@endif
@endsection