@extends('layouts.dashboard') @section('title', 'Notifications') @section('page-content')

Notifications

View all your notifications

@if($notifications->where('is_read', false)->count() > 0)
@csrf
@endif
@forelse($notifications as $notification)
@if($notification->icon === 'document') @elseif($notification->icon === 'academic-cap') @elseif($notification->icon === 'book-open') @else @endif

{{ $notification->title }}

{{ $notification->message }}

{{ $notification->time_ago }}

@if(!$notification->is_read) New @endif
@if($notification->action_url) @endif
@if(!$notification->is_read)
@csrf
@endif
@csrf @method('DELETE')
@empty

No notifications

You're all caught up!

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