@php $user = auth()->user(); $fields = [ 'name' => $user->name, 'email' => $user->email, 'phone' => $user->phone, 'photo' => $user->profile_photo, ]; $filled = collect($fields)->filter(fn ($v) => filled($v))->count(); $total = count($fields); $percent = (int) round(($filled / max($total, 1)) * 100); $missing = collect($fields)->filter(fn ($v) => blank($v))->keys()->map(fn ($k) => ucfirst($k))->values(); @endphp

{{ __('Administrator Profile') }}

{{-- ================= HERO STRIP ================= --}}
{{-- Left: info --}}
Administrator · System Access

Manage your admin identity and account security.

{{ $percent }}%

Profile Completion

@if($missing->isEmpty())

✓ Fully complete

@else

Missing: {{ $missing->join(', ') }}

@endif
{{-- Right: ID card --}}
{{ $user->name }}

Admin Identity

{{ $user->name }}

System Administrator

Role {{ ucfirst($user->role) }}
Status Active
Verified {{ $user->email_verified_at ? 'Yes' : 'No' }}
{{-- ================= FORM SECTIONS ================= --}}
{{-- ---------- Profile Info Form ---------- --}}

Profile Information

Update your name, email and profile photo.

@if (session('status') === 'profile-updated')
Profile updated successfully.
@endif
@csrf @method('patch') {{-- Compact Photo Row --}}
photo

Profile Photo

No file chosen @if($user->profile_photo) @endif

{{-- Name --}}
{{-- Email --}}
{{-- Phone --}}
{{-- ---------- Password Form ---------- --}}

Account Security

Keep your admin account protected with a strong password.

@if (session('status') === 'password-updated')
Password updated successfully.
@endif
@csrf @method('put')