@extends('user.layouts.app') @section('title','Notifications') @section('page-title','Notifications') @section('page-subtitle','Your dashboard notifications') @section('content')
@csrf
@forelse($notifications as $notification)
{{ $notification->title }} @if(!$notification->read_at)New@endif

{{ $notification->message }}

@if(str_contains(strtolower($notification->title), 'certificate')) Go to My Certificates @elseif(str_contains(strtolower($notification->title), 'speaker')) Go to My Presentations @endif {{ $notification->created_at->diffForHumans() }}
@if(!$notification->read_at)
@csrf
@endif
@empty

No notifications yet.

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