@extends('admin.layouts.app')
@section('title', $notification->title . ' — ' . __('admin.notification_center.title'))
@section('page_title', __('admin.notification_center.title'))
@php
use App\Models\AdminNotification;
$statusMeta = [
AdminNotification::STATUS_DRAFT => ['fg' => '#475569', 'bg' => '#f1f5f9'],
AdminNotification::STATUS_SENDING => ['fg' => '#9a3412', 'bg' => '#ffedd5'],
AdminNotification::STATUS_SENT => ['fg' => '#047857', 'bg' => '#ecfdf5'],
AdminNotification::STATUS_PARTIAL => ['fg' => '#92400e', 'bg' => '#fef3c7'],
AdminNotification::STATUS_FAILED => ['fg' => '#b91c1c', 'bg' => '#fef2f2'],
];
$sm = $statusMeta[$notification->status] ?? $statusMeta['draft'];
@endphp
@push('styles')
@endpush
@section('content')
{{ __('admin.notification_center.stats.hint') }}
| {{ __('admin.notification_center.recipients_table.investor') }} | {{ __('admin.notification_center.recipients_table.channel') }} | {{ __('admin.notification_center.recipients_table.status') }} | {{ __('admin.notification_center.recipients_table.sent_at') }} | {{ __('admin.notification_center.recipients_table.error') }} | {{ __('admin.notification_center.recipients_table.retries') }} |
|---|---|---|---|---|---|
| {{ optional($log->recipient)->display_name ?? $log->address ?? '—' }} | {{ __('admin.notification_center.channels.' . $log->channel) }} | {{ $log->status }} | {{ $log->sent_at?->format('Y-m-d H:i') ?? '—' }} | {{ $log->error ? \Illuminate\Support\Str::limit($log->error, 80) : '—' }} | {{ (int) $log->attempt_count }} |