@php $gridCols = !empty($centerCompose) ? 'grid-cols-5' : 'grid-cols-4'; $avatarUrl = $avatarUrl ?? null; $initials = $initials ?? 'U'; $notificationsUrl = $notificationsUrl ?? '#'; $unreadUrl = $unreadUrl ?? null; $profileUrl = $profileUrl ?? '#'; $profileName = trim((string) ($profileName ?? '')); $profileSubtitle = trim((string) ($profileSubtitle ?? '')); $profileMenuItems = $profileMenuItems ?? []; if ($profileMenuItems === [] && $profileUrl !== '#') { $profileMenuItems = [['type' => 'link', 'label' => 'Profile', 'href' => $profileUrl]]; } $searchLabel = $searchLabel ?? 'Search'; $navActive = fn (bool $active) => $active ? 'text-indigo-600' : 'text-slate-600'; @endphp
{{-- Profile menu bottom sheet (matches desktop avatar dropdown) --}}
@if ($profileName !== '' || $profileSubtitle !== '')
@if ($avatarUrl) @else {{ $initials }} @endif
@if ($profileName !== '')

{{ $profileName }}

@endif @if ($profileSubtitle !== '')

{{ $profileSubtitle }}

@endif
@endif
@foreach ($profileMenuItems as $item) @if (($item['type'] ?? 'link') === 'link') {{ $item['label'] }} @elseif (($item['type'] ?? '') === 'logout')
@csrf
@endif @endforeach