@extends('admin.layouts.app') @section('title', 'Users Management') @section('content')
{{-- Page Header --}}
Administration & Access

Users & Accounts {{ $stats['total'] }} Total

One Person → One Account → One User ID — manage identities, access levels, authentication sessions, and security roles.

{{-- Alerts --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- KPI Cards --}} @php $activeStatus = request('status', ''); @endphp
All Users
{{ number_format($stats['total']) }}
Total registered
Active
{{ number_format($stats['active']) }}
Full access enabled
Pending
{{ number_format($stats['pending']) }}
Awaiting verification
Suspended
{{ number_format($stats['suspended']) }}
Temporarily paused
Blocked
{{ number_format($stats['blocked']) }}
Login restricted
{{-- Filter Toolbar --}}
{{-- Search Input --}}
{{-- Status Filter --}}
{{-- Role Filter --}}
{{-- Verification Filter --}}
@php $ver = request('verification'); @endphp
{{-- Per Page & Submit --}}
@if(request()->hasAny(['q', 'status', 'role', 'verification', 'purpose', 'per_page'])) @endif
{{-- Bulk Action Form --}}
@csrf
{{-- Floating Bulk Actions Bar --}}
Selected
{{-- Users Table Card --}}
@forelse($users as $user) {{-- User Details --}} {{-- Role --}} {{-- Purpose --}} {{-- Status Pill --}} {{-- Joined --}} {{-- Actions --}} @empty @endforelse
User Details Role & Permissions Purpose Status Joined Actions
@if($user->id !== auth()->id()) @else • @endif
@if($user->avatar) {{ $user->name }} @else {{ substr($user->name, 0, 1) }} @endif
{{ $user->name }} @if($user->id === auth()->id()) YOU @endif
{{ $user->email }} @if($user->mobile) • {{ $user->mobile }} @endif @if($user->city) • {{ $user->city }} @endif
@if($user->roles->isNotEmpty())
@foreach($user->roles as $r) {{ $r->label }} @endforeach
@else No role assigned @endif
@if($user->account_purpose) {{ $user->purposeLabel() }} @else — @endif @if($user->status === 'active') Active @elseif($user->status === 'pending') Pending @elseif($user->status === 'suspended') Suspended @else Blocked @endif {{ $user->created_at?->format('d M Y') ?? '—' }}
@if($user->id !== auth()->id())
@csrf
@csrf @method('DELETE')
@endif
No users found

No user accounts matched your current search and filter settings.

{{-- Pagination --}} @if(method_exists($users, 'hasPages') && $users->hasPages())
{{ $users->links() }}
@endif
{{-- System RBAC Note --}}
Universal Security Architecture: Account Purpose (why a devotee or vendor joined) is distinct from their Security Role (administrative permissions). Suspended and Blocked accounts are immediately revoked from active sessions across all web and mobile client interfaces.
@endsection