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

Centro notifiche

@if ($notifications->isNotEmpty())
@csrf @method('PATCH')
@csrf @method('PATCH')
@endif
@forelse ($notifications as $notification)

{{ $notification->title }}

{{ $notification->type->label() }} {{ $notification->priority->label() }}
@if ($notification->body)

{{ $notification->body }}

@endif {{ francoach_format_datetime($notification->created_at) }}
@if ($notification->action_url)
@csrf @method('PATCH')
@elseif (!$notification->read_at)
@csrf @method('PATCH')
@endif
@csrf @method('DELETE')
@empty @endforelse
{{ $notifications->links() }}
@endsection