@extends('layouts.admin') @section('title', 'Dashboard') @section('content')

Dashboard

Backup overview for {{ \Carbon\Carbon::parse($date)->format('D, M j, Y') }}
@php $cards = [ ['label' => 'Total Reports', 'value' => $stats['total'], 'icon' => 'bi-server', 'color' => 'primary', 'bg' => 'rgba(13,110,253,.1)'], ['label' => 'Completed', 'value' => $stats['completed'], 'icon' => 'bi-check-circle', 'color' => 'success', 'bg' => 'rgba(25,135,84,.1)'], ['label' => 'Partially Completed', 'value' => $stats['partially_completed'], 'icon' => 'bi-exclamation-circle','color' => 'warning', 'bg' => 'rgba(255,193,7,.1)'], ['label' => 'Failed', 'value' => $stats['failed'], 'icon' => 'bi-x-circle', 'color' => 'danger', 'bg' => 'rgba(220,53,69,.1)'], ['label' => 'Pending', 'value' => $stats['pending'], 'icon' => 'bi-hourglass-split', 'color' => 'secondary', 'bg' => 'rgba(108,117,125,.1)'], ['label' => 'Avg Duration', 'value' => $stats['avg_duration'] ? gmdate('H:i:s', $stats['avg_duration']) : '-', 'icon' => 'bi-clock', 'color' => 'info', 'bg' => 'rgba(13,202,240,.1)'], ]; @endphp @foreach($cards as $card)
{{ $card['value'] }}
{{ $card['label'] }}
@endforeach
Daily Success Rate (30 days)
Today's Summary
Server Health {{ count($servers) }} servers
@foreach($servers as $s) @endforeach
Server API Status Today's Backup Last Sync Response Time
{{ $s['name'] }} {{ $s['status'] }} @if(is_null($s['last_connection_ok'])) @elseif($s['last_connection_ok']) OK @else Failed @endif @php $reportStatus = $s['report_status'] ?? 'pending' @endphp {{ \App\Models\BackupReport::STATUS_LABELS[$reportStatus] ?? ucfirst($reportStatus) }} {{ $s['last_sync_at'] ?? 'Never' }}
@endsection @push('scripts') @endpush