{{--
Search (Ctrl+/)
--}}
  • {{ count(Auth::guard('web')->user()->unreadNotifications) }} @php $role = Auth::guard('web')->user()->getRoleNames()->first(); $guard = $role == "promoter" ? "promoter" : "admin"; @endphp
    • Notification center
      • @forelse(Auth::guard('web')->user()->unreadNotifications()->latest()->get() as $key => $notification)
      • {{ $notification->data['title'] }}

        {{ $notification->data['message'] }}

        {{ \Carbon\Carbon::parse($notification->create_at)->diffForHumans() }}
      • @if($key == 4) @break @endif @empty

        Not found any notifications yet

        @endforelse
    • View all notifications
    • {{ Auth::user()->first_name . " " . Auth::user()->last_name ?? '' }} {{ Auth::user()->roles()->first()->name }}
    • @if(Auth::guard('web')->user()->getRoleNames()->first() == "superadmin") @include('admin.partials.admin-header') @elseif(Auth::guard('web')->user()->getRoleNames()->first() == "promoter") @include('admin.partials.promoter-header') @else @endif