@extends('layouts.admin') @section('title', ($country->name ?? 'Country') . ' — Risk Score') @section('page_title', ($country->name ?? 'Country') . ' — Risk Score') @section('content') {{-- ── Back ─────────────────────────────────────────────────────── --}}
{{-- ── Hero card ────────────────────────────────────────────────── --}}{{ $country->region }}{{ $country->subregion ? ' · ' . $country->subregion : '' }} @if($country->capital) · 🏛 {{ $country->capital }} @endif
{{ number_format($latest->total_score, 1) }}
Total Risk Score
Calculated {{ $latest->calculated_at?->diffForHumans() }}
Recommendation
{{ $latest->recommendation }}
| Calculated | Total | Currency | Weather | Disaster | Political | Level |
|---|---|---|---|---|---|---|
| {{ $h->calculated_at?->format('Y-m-d H:i') }} @if($loop->first) ← latest @endif | {{ number_format($h->total_score, 1) }} | {{ number_format($h->currency_score ?? 0, 1) }} | {{ number_format($h->weather_score ?? 0, 1) }} | {{ number_format($h->disaster_score ?? 0, 1) }} | {{ number_format($h->political_score ?? 0, 1) }} | @include('partials.risk-badge', ['level' => $h->risk_level]) |