@extends('admin.layouts.app') @section('title', 'Edit Admin: ' . $admin->name) @section('content')
← Back to Access Control

Edit Admin: {{ $admin->name }}

{{ $admin->email }}

@if(session('success'))
{{ session('success') }}
@endif

Admin Information

{{ $admin->name }}

{{ $admin->email }}

{{ $admin->phone ?? 'Not provided' }}

@if($admin->two_factor_enabled) ✓ Enabled @else Disabled @endif

{{ $admin->created_at->format('M d, Y H:i') }}

@if($admin->last_login_at) {{ $admin->last_login_at->format('M d, Y H:i') }} @else Never @endif

@csrf @method('PATCH')

Update Permissions

@error('role')

{{ $message }}

@enderror

Selected Role Details:

{{ $roles[$admin->role]['description'] ?? 'No description' }}

Current Permissions

@if(count($currentPermissions) > 0)
@foreach($currentPermissions as $permission => $roles)
{{ ucwords(str_replace('_', ' ', $permission)) }}
@endforeach
@else

No permissions for this role

@endif
@error('status')

{{ $message }}

@enderror

Important: Changing an admin's role or status takes effect immediately and will be logged in the audit trail.

Cancel
@endsection