{{-- Header --}}
{{ $title }}
@if ($mode === 'view') @else @endif
{{-- Body --}}
@if (session()->has('message'))
{{ session('message') }}
@endif @if ($mode === 'view') {{-- Skeleton while loading profile data --}}
{{-- 2 columns (label + value), 4 rows --}}
{{-- Actual profile display --}}
Full Name
{{ $user->fullname }}
Email
{{ $user->email }}
Roles
@if ($roles) {{ implode(', ', $roles) }} @else No roles assigned @endif
Account Created At
{{ $user->created_at?->format('d/m/Y H:i') ?? '—' }}
@else {{-- Skeleton while loading change-password form --}}
{{-- 3 fields + 2 buttons --}}
{{-- Actual change-password form --}}
@error('currentPassword')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
@endif
@script @endscript