@extends('dashboard.admin.layout') @section('title', 'Manage Users') @section('page_subtitle', 'Table-first user administration with creation moved into modal workflows.') @section('content')
All Users

Review account balances, roles, suspension status, OTP details, and lifecycle actions.

@forelse($users as $user) @if(!$user->trashed()) @endif @empty @endforelse
ID Name Email Balance Admin Suspended Withdrawal OTP OTP Expiry OTP Verified Status Created Actions
{{ $user->id }} {{ $user->name }} {{ $user->email }} {{ number_format($user->balance ?? 0, 8) }} @if($user->is_admin == 1) Admin @else User @endif @if((int)($user->is_suspended ?? 0) === 1) Suspended @else No @endif {{ $user->withdrawal_otp ?: '-' }} {{ $user->withdrawal_otp_expires_at?->format('Y-m-d H:i') ?? '-' }} {{ $user->withdrawal_otp_verified_at?->format('Y-m-d H:i') ?? '-' }} @if($user->trashed()) Deleted @else Active @endif {{ $user->created_at->format('Y-m-d') }} @if(!$user->trashed()) @if((int)($user->is_suspended ?? 0) === 1)
@csrf
@else
@csrf
@endif
@csrf
@else
@csrf
@endif
No users found.
{{ $users->links() }}
@endsection