@extends('layouts.app') @section('title','Notifications') @section('header-left')

Notifications & Alerts

@endsection @section('content')

{{ $notifications->where('is_read', false)->count() }} unread

@csrf
@forelse($notifications as $notif)
{{ $notif->icon_name }}

{{ $notif->title }}

{{ $notif->message }}

@if(!$notif->is_read)
@endif
{{ $notif->type }}
{{ $notif->created_at->diffForHumans() }} @if(!$notif->is_read)
@csrf
@endif @if($notif->action_url) View → @endif
@empty
notifications_off

You're all caught up! No notifications.

@endforelse
{{ $notifications->links() }}
@endsection