{{-- resources/views/notifications/index.blade.php --}} @extends('layouts.app') @section('title', 'Notifications - Todo Reminder') @section('content')

Notifications

{{-- @if($notifications->where('is_read', false)->count() > 0) @endif --}}
@if($notifications->count() > 0)
@foreach($notifications as $notification)
{{ $notification->title }}
@if(!$notification->is_read) New @endif

{{ $notification->message }}

@if($notification->todo) @endif {{ $notification->created_at->diffForHumans() }}
{{--
@if(!$notification->is_read) @endif
--}}
@endforeach
{{-- Pagination --}}
{{ $notifications->links() }}
@else

No Notifications

You don't have any notifications yet.

Create Your First Todo
@endif {{-- Delete Confirmation Modal --}} @endsection @push('scripts') @endpush