{{-- Account profile modal for every signed-in user, opened from the topbar account menu. Both forms save through the shared data-ajax handler. --}} @auth @php $profileUser = auth()->user(); $profileRole = $profileUser->is_admin ? 'Administrator' : ($profileUser->isPrincipal() ? 'Principal' : 'Teacher'); $profileInitials = collect(preg_split('/\s+/', trim($profileUser->name))) ->filter()->take(2)->map(fn ($part) => mb_strtoupper(mb_substr($part, 0, 1)))->implode('') ?: 'U'; @endphp
@endauth