@foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties) {{ $properties['native'] }} @endforeach
    @if(auth()->user())
  • {{auth()->user()->unreadNotifications()->count()??''}}
    • {{auth()->user()->unreadNotifications()->count()??''}} {{__('New')}}

      {{__('App Notifications')}}
    • @foreach(auth()->user()->notifications as $notification) @php $locale = app()->getLocale(); $title = is_array($notification->data['title']) ? ($notification->data['title'][$locale] ?? $notification->data['title']['en']) : $notification->data['title']; $body = is_array($notification->data['body']) ? ($notification->data['body'][$locale] ?? $notification->data['body']['en']) : $notification->data['body']; @endphp
      {{ $title }}
      {!! $body !!}
      {{$notification->created_at->diffForHumans()}}
      @endforeach
    • @csrf
  • @endif
  • {{ auth('web')->user()->name}}{{ optional(auth()->user())->name}}
    avatar
    @if(auth()->check()) {{__('Edit Profile')}}
    @endif {{__('Logout')}}