@extends('layouts.app') @section('title', __('clinic.notifications')) @section('heading', __('clinic.notifications')) @section('content') @if (auth()->user()->unreadNotifications->isNotEmpty())
@csrf
@endif
@forelse ($notifications as $n)
{{ $n->data['title'] ?? class_basename($n->type) }}
@if (! empty($n->data['message']))
{{ $n->data['message'] }}
@endif
{{ $n->created_at->diffForHumans() }}
@if (isset($n->data['due_at']))
{{ __('clinic.crm_due') }}: {{ $n->data['due_at'] }}
@endif
@if ($n->unread())
@csrf
@endif
@empty

{{ __('clinic.crm_no_notifications') }}

@endforelse
@include('partials.pagination', ['paginator' => $notifications]) @endsection