@extends('layouts.admin')
@section('title', 'Dashboard')
@section('page-title', 'Command Dashboard')
@section('page-subtitle', 'Fleet-wide operational overview')
@section('content')
@php
$cards = [
['label' => 'Total Fleets', 'value' => $stats['total_fleets'], 'icon' => 'bi-water', 'bg' => 'primary'],
['label' => 'Fleets At Sea', 'value' => $stats['fleets_at_sea'], 'icon' => 'bi-compass', 'bg' => 'info'],
['label' => 'Fleets Returned', 'value' => $stats['fleets_returned'], 'icon' => 'bi-anchor', 'bg' => 'success'],
['label' => 'Live Fleet Count', 'value' => $stats['live_fleet_count'], 'icon' => 'bi-broadcast', 'bg' => 'success'],
['label' => 'Active Missions', 'value' => $stats['active_missions'], 'icon' => 'bi-flag', 'bg' => 'info'],
['label' => 'Completed Missions', 'value' => $stats['completed_missions'], 'icon' => 'bi-check2-circle', 'bg' => 'success'],
['label' => 'Pending Missions', 'value' => $stats['pending_missions'], 'icon' => 'bi-hourglass-split', 'bg' => 'warning'],
['label' => 'Total Users', 'value' => $stats['total_users'], 'icon' => 'bi-people', 'bg' => 'primary'],
['label' => 'Active Users', 'value' => $stats['active_users'], 'icon' => 'bi-person-check', 'bg' => 'success'],
['label' => 'Zone Completion %', 'value' => $stats['zone_completion_percent'].'%', 'icon' => 'bi-pentagon', 'bg' => 'info'],
['label' => 'Sea Trial Reports', 'value' => $stats['sea_trial_reports'], 'icon' => 'bi-file-earmark-spreadsheet', 'bg' => 'warning'],
['label' => 'Mission Documents', 'value' => $stats['generated_documents'], 'icon' => 'bi-file-earmark-pdf', 'bg' => 'primary'],
['label' => 'Notifications', 'value' => $stats['notifications'], 'icon' => 'bi-bell', 'bg' => 'danger'],
['label' => 'Questionnaire Templates', 'value' => $stats['questionnaire_templates'], 'icon' => 'bi-ui-checks', 'bg' => 'info'],
];
@endphp
@foreach ($cards as $card)
{{ $card['value'] }}
{{ $card['label'] }}
@endforeach