@extends('layouts.user') @section('title', 'Notifications') @section('content')
@if($notifications->isEmpty())

No notifications yet

@else
@foreach($notifications as $notification)

{{ $notification->title }}

{{ $notification->message }}

{{ $notification->created_at->diffForHumans() }}

@if(!$notification->read_at)
@endif
@endforeach
{{ $notifications->links() }}
@endif
@endsection