@extends('layouts.admin') @section('title', 'Unified User Management') @section('page-title', 'Platform User Management & Access Control') @section('content')
{{ session('temporary_password') }}
| 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)
@endif
|
| No user accounts found matching your selected search or filter criteria. | ||||||