@extends('layouts.user')
@section('title', 'Dashboard — Global Supply Chain Intelligence')
@push('styles')
@endpush
@section('content')
{{-- Flower Decorations --}}
{{-- ── Hero ─────────────────────────────────────────────────── --}}
Peta Risiko Rantai Pasok
Global
Visualisasi kondisi risiko rantai pasok global berdasarkan data real-time
{{-- ── Stat cards (3 only) ───────────────────────────────────────────── --}}
@foreach([
['Total Negara', $stats['countries'], '🌍', 'border-amber-200'],
['Total Pelabuhan', $stats['ports'], '⚓', 'border-blue-200'],
['API Aktif', 7, '🔗', 'border-emerald-200'],
] as [$label, $value, $icon, $border])
{{ $icon }}
{{ number_format($value) }}
{{ $label }}
@endforeach
{{-- ── Main content: Map + Top 10 List dengan layout lebih luas ────────────────────────────────────── --}}
{{-- Weather-style Risk Map Panel (3/4 width untuk lebih luas) --}}
🗺️ Peta Risiko Global
Klik marker untuk membuka panel detail
Legenda:
🟢 Rendah
🟡 Sedang
🔴 Tinggi
{{-- Search Bar --}}
{{-- Weather-style Panel Wrapper --}}
{{-- Side Panel (starts hidden) --}}
{{-- Panel Header --}}
{{-- Risk Score Display --}}
{{-- Panel Body --}}
{{-- Port Information Section (MOVED UP) --}}
{{-- Weather Section (MOVED DOWN) --}}
{{-- Disaster Status Section --}}
⚠️ Disaster Status
Loading disaster indicators...
{{-- Risk Score Breakdown Section --}}
{{-- Operational Impact Section --}}
💼 Operational Impact
Loading impact assessment...
{{-- Panel Actions --}}
{{-- Map Section --}}
{{-- Top 10 Risk Countries (1/4 width) --}}
🔴 10 Negara Risiko Tertinggi
Berdasarkan agregasi data real-time
@forelse($topRisk as $index => $r)
{{ $index + 1 }}
@if($r->country?->flag_url)

@endif
{{ $r->country?->name ?? '—' }}
{{ $r->country?->region ?? '' }}
{{ number_format($r->total_score, 1) }}
{{ $r->risk_level }}
@if($r->country?->iso2)
View
@endif
@empty
Tidak ada data risiko.
@endforelse
@endsection
@push('scripts')
@endpush