{{ __('Notifications') }}

{{ __('Inbox') }}
@if ($unreadCount > 0) {{ trans_choice(':count new notification|:count new notifications', $unreadCount, ['count' => $unreadCount]) }} @else {{ __('You are all caught up') }} @endif
{{ trans_choice(':count in total|:count in total', $totalCount, ['count' => $totalCount]) }} · {{ __('Payments and the monthly salary word land here.') }}
@if ($unreadCount > 0)
@csrf
@endif
@if ($notifications->isEmpty())
{{ $onlyUnread ? __('Nothing new') : __('Nothing here yet') }}

{{ $onlyUnread ? __('Every notification has been read. New ones will show up here.') : __('When a payment is recorded or a month closes, the word lands here.') }}

@else @foreach ($groups as $day => $items)

{{ $day }}

    @foreach ($items as $notification) @php $unread = $notification->read_at === null; $tone = $notification->data['tone'] ?? 'brand'; [$iconClasses, $accent] = match ($tone) { 'emerald' => ['bg-emerald-50 text-emerald-600 ring-emerald-100', 'border-emerald-500'], 'amber' => ['bg-amber-50 text-amber-600 ring-amber-100', 'border-amber-500'], 'red' => ['bg-red-50 text-red-600 ring-red-100', 'border-red-500'], 'sky' => ['bg-sky-50 text-sky-600 ring-sky-100', 'border-sky-500'], 'gray' => ['bg-gray-100 text-gray-500 ring-gray-200', 'border-gray-400'], default => ['bg-brand-50 text-brand-600 ring-brand-100', 'border-brand-500'], }; @endphp
  • @csrf
  • @endforeach
@endforeach @if ($notifications->hasPages())
{{ $notifications->links() }}
@endif @endif