@extends('layouts.user')
@section('title', 'Data Visualization Dashboard')
@push('styles')
@endpush
@push('scripts')
@endpush
@section('content')
{{-- Flower Decorations --}}
{{-- ── Header ─────────────────────────────────────────────────── --}}
Analytics Center
Real-time supply chain indicators, risk composition, and weather monitoring.
{{-- ── Summary Statistics Cards ── --}}
@php
$stats = [
['Total Countries', $totalCountries, '🌍', 'text-blue-600', 'bg-blue-50'],
['Total Ports', $totalPorts, '🚢', 'text-cyan-600', 'bg-cyan-50'],
['Weather Records', $totalWeatherRecords, '🌡️', 'text-orange-600', 'bg-orange-50'],
['Economy Records', $totalEconomyRecords, '📊', 'text-emerald-600', 'bg-emerald-50'],
['Exchange Rates', $totalExchangeRates, '💱', 'text-amber-600', 'bg-amber-50'],
['News Articles', $totalNewsArticles, '📰', 'text-indigo-600', 'bg-indigo-50'],
['Risk Scores', $totalRiskScores, '⚠️', 'text-rose-600', 'bg-rose-50'],
];
@endphp
@foreach($stats as [$label, $val, $emoji, $txtCls, $bgCls])
{{ $label }}
{{ $emoji }}
{{ $val ?: '0' }}
@endforeach
{{-- ── Charts Dashboard ────────────────────────────────────────── --}}
{{-- Top Risk Components (Global Ranking) --}}
Top Risk Components (Global Ranking)
Rata-rata tingkat risiko berdasarkan komponen logistik global
@if(empty($avgScores))
Data belum tersedia.
@else
@endif
{{-- Port Distribution --}}
Port Distribution Analytics
Top 10 countries with the highest port counts
@if($portData->isEmpty())
Data belum tersedia.
@else
@endif
{{-- News Sentiment / Kategori --}}
News Articles Category Distribution
Supply chain articles filtered by category keywords
@if($newsData->isEmpty())
Data belum tersedia.
@else
@endif
{{-- Currency Exchange Rate --}}
Global Currency Movement
Latest percentage change of major currencies against USD.
@if($currencyData->isEmpty())
Data belum tersedia.
@else
Tentang Grafik Ini
Grafik ini menampilkan perubahan persentase nilai tukar mata uang utama terhadap USD berdasarkan data terbaru pada database DaisyRisk. Perubahan nilai tukar digunakan sebagai indikator risiko ekonomi yang dapat memengaruhi biaya perdagangan internasional, logistik, dan rantai pasok global.
Terakhir Diperbarui
📅
{{ $lastCurrencyUpdate ? \Carbon\Carbon::parse($lastCurrencyUpdate)->format('Y-m-d H:i') . ' WIB' : '—' }}
Mata Uang Populer
@forelse($popularCurrencies as $code)
{{ $code }}
@empty
Tidak ada data.
@endforelse
@endif
Data Source: Latest exchange rate records from exchange_rates table.
Visualization based on change_percentage to support supply chain risk analysis.
{{-- Economy Analytics (GDP & Inflation) --}}
Economy Indicators (GDP & Inflation)
Core indicators of the top 10 economies by GDP
@if($economyData->isEmpty())
Data belum tersedia.
@else
@endif
{{-- Weather Analytics --}}
Weather Risk Indicators Comparison
Latest storm risk and weather variables of the top 10 countries
@if($weatherData->isEmpty())
Data belum tersedia.
@else
@endif
@endsection
@push('scripts')
@endpush