@extends('layouts.shell') @section('title', 'Inbox') @section('subtitle', 'In-app notifications') @section('actions')
@csrf
@endsection @section('content')
{{ $unreadCount }} unread
@forelse ($notifications as $notification) @empty @endforelse
TitleMessageWhen
{{ $notification->title }} {{ $notification->body }} @if ($notification->type === \App\Enums\NotificationType::BroadcasterRegistered && auth()->user()?->isAdmin()) @endif @if ($notification->type === \App\Enums\NotificationType::CreditRequestSubmitted && auth()->user()?->isAdmin()) @endif {{ $notification->created_at?->toDayDateTimeString() }} @if ($notification->read_at === null)
@csrf
@else Read @endif
No notifications yet.
{{ $notifications->links() }}
@endsection