@extends('layouts.dashboard') @section('page-title', 'Entwickler-Dashboard') @section('content') {{-- ── Stats ── --}}
Offen / Wartend
{{ $stats['open_incidents'] }}
Incidents ohne Lösung
In Bearbeitung
{{ $stats['in_progress'] }}
Aktiv bearbeitet
Gelöst diesen Monat
{{ $stats['resolved_this_month'] }}
{{ now()->format('F Y') }}
PAYONE (30 Tage)
{{ $stats['payone_incidents_30d'] }}
Incidents bei PAYONE
{{-- ── Anbieter-Status ── --}}
Anbieter-Status
@foreach($providerStats as $key => $provider)
{{ $provider['label'] }}
{{ $provider['open_incidents'] }}
offene Störungen
{{ $provider['total_30d'] }}× in 30 Tagen
@if($provider['last_incident'])
Zuletzt: {{ $provider['last_incident']->detected_at->format('d.m.Y H:i') }}
@endif
@endforeach
{{-- ── Offene Incidents ── --}}
Offene Incidents
@forelse($openIncidents as $incident)
{{ $incident->title }}
{{ ucfirst($incident->severity) }} {{ $incident->status_label }} {{ $incident->provider_label }}
Detail →
Erkannt: {{ $incident->detected_at->format('d.m.Y H:i') }} · Dauer: {{ $incident->duration }} @if($incident->ticket_number) · Ticket: {{ $incident->ticket_number }} @endif @if($incident->affected_orders > 0) · {{ $incident->affected_orders }} Bestellungen betroffen @endif
{{-- Letzte Aktivität --}} @if($incident->activities->count() > 0) @php $last = $incident->activities->sortByDesc('created_at')->first(); @endphp
{{ $last->type_icon }} Letzte Aktivität: {{ $last->title }} – {{ $last->created_at->diffForHumans() }}
@endif {{-- Schnell-Status-Update --}}
@csrf @method('PATCH')
@empty
Keine offenen Incidents
@endforelse
{{-- ── Letzte Aktivitäten ── --}}
Kommunikations-Verlauf
@forelse($recentActivity as $activity)
{{ $activity->type_icon }} {{ $activity->title }}
{{ $activity->type_label }} · {{ $activity->author }} · {{ $activity->created_at->format('d.m.Y H:i') }} @if($activity->incident) · {{ $activity->incident->title }} @endif
@if($activity->content)
{{ $activity->content }}
@endif
@empty
Noch keine Aktivitäten erfasst.
@endforelse
{{-- ── Alle Incidents Tabelle ── --}}
Alle Incidents
{{ $allIncidents->total() }} gesamt
@forelse($allIncidents as $incident) @empty @endforelse
# Titel Anbieter Typ Schwere Status Erkannt Dauer Ticket
#{{ $incident->id }} {{ $incident->title }} {{ $incident->provider_label }} {{ $incident->type }} {{ ucfirst($incident->severity) }} {{ $incident->status_label }} {{ $incident->detected_at->format('d.m.Y H:i') }} {{ $incident->duration }} {{ $incident->ticket_number ?? '–' }} Detail
Noch keine Incidents.
{{ $allIncidents->links() }}
{{-- ── Modal: Neuer Incident ── --}} @endsection