@extends('layouts.app') @section('title', 'Notifications') @section('content')
Notification List
@forelse($notifications ?? [] as $notification)
{{ $notification->title }}

{{ $notification->message }}

{{ $notification->created_at->diffForHumans() }} @if($notification->read_at) • Read {{ $notification->read_at->diffForHumans() }} @endif
@empty
No notifications

You're all caught up!

@endforelse
@endsection @section('scripts') @endsection