{{ __('Admin') }} {{ __('Notifications') }}
{{-- Title row --}}
{{ __('Admin · Platform activity · Notifications') }}

{{ __('Admin') }} {{ __('notifications') }}

{{ __('Everything happening across the platform — new signups, payments, support tickets, contact messages, and new workspaces. Separate from a workspace operator\'s personal notifications.') }}

@csrf
{{-- KPI strip — counts over the last 30 days --}}
@php $cards = [ ['all', __('All events'), $stats['total'], 'border-paper-200', 'text-ink-900'], ['signup', __('Signups'), $stats['signup'], 'border-paper-200', 'text-ink-900'], ['payment', __('Payments'), $stats['payment'], 'border-wa-green/40', 'text-wa-deep'], ['ticket', __('Support'), $stats['ticket'], 'border-accent-amber/40', 'text-[#7B5A14]'], ['contact', __('Messages'), $stats['contact'], 'border-paper-200', 'text-ink-900'], ['workspace', __('Workspaces'), $stats['workspace'], 'border-paper-200', 'text-ink-900'], ]; @endphp @foreach ($cards as [$key, $label, $val, $border, $num])
{{ $label }}
{{ number_format($val) }}
{{ __('last 30 days') }}
@endforeach
{{-- Filter row --}}
@php $pills = ['all' => __('All')] + collect(\App\Http\Controllers\Admin\AdminNotificationController::TYPES)->map(fn($l)=>__($l))->all(); @endphp @foreach ($pills as $k => $label) @endforeach
{{-- Events table --}}
@php $meta = [ 'signup' => [ 'Signup', 'bg-paper-100 text-ink-700', '', ], 'payment' => [ 'Payment', 'bg-wa-mint text-wa-deep', '', ], 'ticket' => [ 'Support', 'bg-[#FFF4E0] text-[#7B5A14]', '', ], 'contact' => [ 'Message', 'bg-paper-100 text-ink-700', '', ], 'workspace' => [ 'Workspace', 'bg-paper-100 text-ink-700', '', ], ]; @endphp @forelse ($events as $e) @php $m = $meta[$e['type']] ?? ['Event','bg-paper-100 text-ink-700','']; @endphp @empty @endforelse
{{ __('Type') }} {{ __('Event') }} {{ __('Detail') }} {{ __('When') }} {{ __('Open') }}
{!! $m[2] !!}{{ $m[0] }} {{ $e['title'] }} {{ $e['message'] ?: '—' }} {{ $e['when']->diffForHumans() }}
{{ __('No platform activity in this view.') }}
{{ __('Showing') }} {{ number_format($total) }} {{ __('recent events') }}{{ $typeF !== 'all' ? ' · ' . __(\App\Http\Controllers\Admin\AdminNotificationController::TYPES[$typeF] ?? '') : '' }}
{{ __('Live feed — newest first') }}