@extends('admin.panel.layout') @section('admin_title', 'Berichte') @php $statusColors = [ 'sent' => ['#f0fdf4', '#15803d'], 'skipped' => ['#f1f5f9', '#475569'], 'pending' => ['#fefce8', '#a16207'], 'failed' => ['#fef2f2', '#b91c1c'], ]; $typeLabels = ['daily' => 'Tagesbericht', 'weekly' => 'Wochenanalyse', 'monthly' => 'Monatsbericht', 'alert' => 'Warnung']; @endphp @section('admin_content')
ProblemRadar

Berichte

Automatische Tages-, Wochen- und Monatsberichte über das vorhandene Mailsystem. Berichte enthalten ausschließlich aggregierte Kennzahlen — keine Namen, keine E-Mail-Adressen.

Empfänger: @if (empty($recipients)) keine konfiguriert (config problemradar.reports.recipients) @else {{ implode(', ', $recipients) }} @endif

Übersicht
@if (session('admin_status'))
{{ session('admin_status') }}
@endif

Bericht jetzt auslösen

Sendet sofort an die konfigurierten Empfänger (gleiches Ergebnis wie der Scheduler).

@foreach (['daily' => 'Tagesbericht', 'weekly' => 'Wochenanalyse', 'monthly' => 'Monatsbericht'] as $type => $label)
@csrf
@endforeach
@forelse ($runs as $run) @php($colors = $statusColors[$run->delivery_status] ?? ['#f1f5f9', '#475569']) @empty @endforelse
Typ Zeitraum Erzeugt Status Fehler
{{ $typeLabels[$run->report_type] ?? $run->report_type }} {{ optional($run->period_start)->format('d.m.Y H:i') ?: '—' }} – {{ optional($run->period_end)->format('d.m.Y H:i') ?: '—' }} {{ optional($run->generated_at)->format('d.m.Y H:i') ?: '—' }} {{ $run->delivery_status }} {{ $run->error_message ? \Illuminate\Support\Str::limit($run->error_message, 80) : '—' }}
Noch keine Berichtsläufe protokolliert.
@endsection