@extends('layouts.superadmin') @section('title', "Administrator Profile: {$admin->name}") @section('content')

Administrator Account Profile

Comprehensive staff credential review, module permissions matrix, and audit trail logs.

Edit Account Back to Directory
{{ strtoupper(substr($admin->name, 0, 1)) }}

{{ $admin->name }}

@ {{ $admin->username }}
@if($admin->status === 'active') Active Account @else Suspended Account @endif
Official Email {{ $admin->email }}
Phone Number {{ $admin->phone ?? 'Not provided' }}
Administrative Role @if($admin->isSuperAdmin()) SUPER ADMIN @elseif($admin->isDistrictOfficer()) DISTRICT OFFICER @else GENERAL ADMIN @endif
@if($admin->isDistrictOfficer())
Assigned Jurisdiction {{ $admin->assigned_district ?? 'Unassigned' }}
@endif
Account Created {{ $admin->created_at->format('d M Y, h:i A') }}
@if($admin->id !== Auth::id())
@csrf @if($admin->status === 'active') @else @endif
@endif

Assigned Module Permissions

Specific functional capabilities granted to this administrative account.

@if($admin->isSuperAdmin())
Full Statewide Root Authority

As a Super Administrator, this account possesses unrestricted, omnipotent authority across all departments, candidates, employers, staff provisioning, and system settings.

@else @php $available = \App\Http\Controllers\SuperAdmin\AdminManagementController::getAvailablePermissions(); $granted = $admin->permissions ?? []; @endphp
@foreach($available as $permKey => $permLabel) @php $hasPerm = in_array($permKey, $granted); @endphp
@if($hasPerm) {{ $permLabel }} @else {{ $permLabel }} @endif
@endforeach
@endif

Activity & Audit Trail

Real-time append-only ledger of actions initiated by {{ $admin->name }}.

@forelse($activityLogs as $log) @empty @endforelse
Action Description IP Address Timestamp
{{ $log->action }} {{ $log->description }} {{ $log->ip_address ?? '—' }} {{ $log->created_at->format('d M Y, h:i A') }}
No logged audit activity found for this administrator account.
@if($activityLogs->hasPages())
{{ $activityLogs->links() }}
@endif
@endsection