@extends('layouts.digitar') @section('content')

Central de Notificações


Você tem {{ $unreadCount }} notificação{{ $unreadCount != 1 ? 'es' : '' }} não lida{{ $unreadCount != 1 ? 's' : '' }}
@forelse ($notifications as $n) @php $data = $n->data; $title = $data['title'] ?? 'Nova notificação'; $message = $data['message'] ?? ''; $itemLabel = $data['item_label'] ?? ''; $itemType = $data['item_type'] ?? ''; $actionLabel = $data['action_label'] ?? 'Abrir'; $actionLink = $data['action_link'] ?? ($data['link'] ?? '#'); $isRead = $n->read_at != null; @endphp @empty @endforelse
Tipo de Processo Status Ações
{{ $title }} @if ($itemType || $itemLabel)
{{ $itemType }}{{ $itemType && $itemLabel ? ': ' : '' }}{{ $itemLabel }}
@endif @if ($message)
{{ $message }}
@endif
@if (!$isRead)
Recebida em: {{ \Carbon\Carbon::parse($n->created_at)->format('d/m/Y H:i') }}
@endif
{{ $isRead ? 'Lida' : 'Não Lida' }} {{ $actionLabel }}

Nenhuma notificação encontrada

Quando houver novas notificações, elas aparecerão aqui.

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