@extends('app.template') @section('title', 'Dashboard - COLI') @section('content')

Dashboard Overview

Welcome back, {{ auth()->user()->name ?? 'User' }}! Here’s a summary of your system and scan activities.

System Summary
Last update: {{ now()->format('d/m/Y H:i') }}
{{ $systemInfo['memory'] ?? '-' }}
Memory Usage
{{ $systemInfo['disk'] ?? '-' }}
Disk Usage
{{ $systemInfo['ip'] ?? '-' }}
Server IP
{{ $systemInfo['uptime'] ?? '-' }}
Uptime
Memory Usage {{ $systemInfo['memory_percent'] ?? 0 }}%
Disk Usage {{ $systemInfo['disk_percent'] ?? 0 }}%
Scan Statistics
Scans per Month (12 mo)
Scans per Week (7 wks)
Scans per Day (30 d)
{{ $totalScopes ?? 0 }}
Total Scopes
{{ $totalScans ?? 0 }}
Total Scans
{{ $runningScans ?? 0 }}
Running Scans
{{ $pendingScans ?? 0 }}
Pending Scans
{{ $failedScans ?? 0 }}
Failed Scans
{{ $stoppedScans ?? 0 }}
Stopped Scans
Recent Scans
@forelse($recentScans ?? [] as $scan) @empty @endforelse
# Target Workflow Status Started At Actions
{{ $loop->iteration }} {{ $scan->target }} {{ ucfirst($scan->workflow->name ?? '-') }} @php $statusColors = [ 'pending' => 'secondary', 'running' => 'warning', 'done' => 'success', 'error' => 'danger', 'stopped' => 'dark' ]; $statusColor = $statusColors[$scan->status] ?? 'secondary'; $statusIcons = [ 'pending' => 'mdi mdi-timer-sand', 'running' => 'mdi mdi-progress-clock', 'done' => 'mdi mdi-check-circle-outline', 'error' => 'mdi mdi-close-circle-outline', 'stopped' => 'mdi mdi-stop-circle-outline' ]; $statusIcon = $statusIcons[$scan->status] ?? 'mdi mdi-help-circle-outline'; @endphp {{ ucfirst($scan->status) }} {{ $scan->created_at ? $scan->created_at->format('Y-m-d H:i') : '-' }}
No recent scans found.
@endsection