@extends('layouts.app') @section('title', 'Notifications') @section('content')

Notifications

@if (auth()->user()->notifications()->where('is_read', false)->count() > 0)
@csrf
@endif
@if ($notifications->count() > 0)
@foreach ($notifications as $notification)

{{ $notification->message }}

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

@if ($notification->leaveRequest) View Leave Request → @endif
@if (!$notification->is_read)
@csrf
@endif
@csrf @method('DELETE')
@endforeach
@if ($notifications->hasPages())
{{ $notifications->links() }}
@endif @else

No notifications yet.

@endif
@endsection