@php $active = $active ?? 'profile'; $user = auth()->user(); $initials = strtoupper(mb_substr(trim((string) $user->firstname), 0, 1).mb_substr(trim((string) $user->lastname), 0, 1)); if ($initials === '') { $initials = strtoupper(mb_substr(trim((string) $user->email), 0, 1)); } @endphp