• @if(auth()->user()->notifications->where('is_read', false)->count() > 0) {{ auth()->user()->notifications->where('is_read', false)->count() }} @endif
    • Notifications

      @if(auth()->user()->notifications->where('status', false)->count() > 0)
      {{auth()->user()->notifications->where('is_read', false)->count()}}
      @endif
    • @if(auth()->user()->notifications->count() > 0) @foreach(auth()->user()->notifications as $notification)

      {{ $notification->title }}

      {{Str::limit($notification->message,30)}}
      {{ $notification->created_at->diffForHumans() }}
      @endforeach @endif
    • Read all notifications
  • ({{ auth()->user()->id }}) {{ auth()->user()->name }} Available
    {{ auth()->user()->name }}
    @php $accountRoutes = [ 'Admin' => 'admin.profile.index', 'Affiliate' => 'affiliate.account.index', 'Manager' => 'manager.account.index', ]; $userRole = auth()->user()->role; @endphp @if (isset($accountRoutes[$userRole])) Account @endif
    Logout
    @csrf