{{-- Header --}}
  • Notifications @if ($this->unreadCount) {{ $this->unreadCount }} @endif

    Clear All
  • {{-- Body --}}
  • @forelse($this->notifications as $item) @php $notification = $item->notification; $icons = [ 'success' => 'fa fa-check text-success', 'warning' => 'fa fa-warning text-warning', 'danger' => 'fa fa-times text-danger', 'info' => 'fa fa-info-circle text-info', ]; $type = $notification->type ?? 'info'; @endphp {{-- Icon --}}
    {{-- Content --}}
    {{-- Type --}} {{ ucfirst($type) }} {{-- Time --}} {{ $item->created_at->diffForHumans() }}
    {{ $notification->message ?? 'Notification message' }}
    @empty
    No notifications found
    @endforelse
  • {{-- Footer --}}
  • View All