{{-- Mobile toggle menu --}}
{{-- Header global search --}}
    {{-- Mobile search icon --}}
  • {{-- Language Dropdown --}}
  • Language
    • English
    • Catalan
    • French
    • Hindi
  • {{-- Dark mode toggle --}}
  • {{-- Apps Dropdown --}}
  • {{-- Repeat this col block for each app --}}
    Slack

    Slack

    GitHub

    GitHub

    {{-- Add other apps similarly --}}
  • {{-- Notifications --}} @php $userNotifs = auth()->check() ? auth()->user()->notifications()->take(6)->get() : collect(); if ($userNotifs->count() > 0) { $recentNotifications = $userNotifs; $unreadCount = auth()->user()->unreadNotifications()->count(); } else { $recentNotifications = \Illuminate\Notifications\DatabaseNotification::latest()->take(6)->get(); $unreadCount = \Illuminate\Notifications\DatabaseNotification::whereNull('read_at')->count(); } @endphp
  • {{ $unreadCount > 99 ? '99+' : $unreadCount }}

    Notifications

    {{ $unreadCount }} New

    @if($unreadCount > 0) Mark Read @endif
    @forelse($recentNotifications as $notification) @php $notifData = is_string($notification->data) ? json_decode($notification->data, true) : $notification->data; $title = $notifData['title'] ?? ($notifData['subject'] ?? 'Notification'); $body = $notifData['body'] ?? ($notifData['message'] ?? ($notifData['content'] ?? '')); $actionUrl = $notifData['action_url'] ?? ($notifData['url'] ?? 'javascript:void(0);'); $isUnread = is_null($notification->read_at); @endphp
    {{ $title }}
    {{ $notification->created_at ? $notification->created_at->diffForHumans() : '' }}

    {{ $body }}

    @empty

    No notifications available

    @endforelse
    View All Notifications
  • {{-- Cart Dropdown --}}
  • 8

    My Cart

    10 Items

    {{-- Cart items --}}
    product
    Men White T-Shirt

    1 X $29.00

    $29

    {{-- Repeat cart items --}}
    Total
    $489.00
{{-- User Box --}} @php $user = auth()->user(); $profileImage = null; if ($user && !empty($user->profile_image)) { $profileImage = \Illuminate\Support\Str::startsWith($user->profile_image, ['http://', 'https://']) ? $user->profile_image : asset('storage/' . ltrim($user->profile_image, '/')); } // Spatie media support if ($user) { $mediaProfile = $user->getFirstMediaUrl('profile', 'thumb') ?: $user->getFirstMediaUrl('profile'); $profileImage = $mediaProfile ?: $profileImage; } // Default fallback image $profileImage = $profileImage ?: asset('assets/images/avatars/avatar-2.png'); @endphp
user avatar

{{ $user?->email ?? '' }}

User Type: {{ $user ? ucwords(str_replace('_', ' ', $user->account_type)) : 'User' }}

  • Profile
  • Settings

  • Logout
@csrf