@extends('layouts.admin') @section('title', 'Disasters — Global Supply Chain') @section('page_title', 'Earthquake Monitoring') @section('content') {{-- ── Header ──────────────────────────────────────────────────── --}}

Earthquake Monitoring

Significant seismic events (M ≥ 6.0) from USGS. @if($lastSynced) · Last synced {{ \Carbon\Carbon::parse($lastSynced)->diffForHumans() }} @endif

@csrf
{{-- ── Filters ──────────────────────────────────────────────────── --}}
@if(request()->hasAny(['search', 'tsunami'])) Clear @endif
{{-- ── Table ────────────────────────────────────────────────────── --}}
@forelse($records as $d) @php $mag = (float) ($d->magnitude ?? 0); $magColor = $mag >= 8 ? 'text-red-400' : ($mag >= 7 ? 'text-orange-400' : ($mag >= 6 ? 'text-amber-400' : 'text-slate-300')); @endphp @empty @endforelse
Location Country Magnitude Depth km Tsunami Coordinates Occurred
{{ $d->place ?? '—' }} @if($d->country)
@if($d->country->flag_url) @endif {{ $d->country->name }}
@else — @endif
M{{ number_format($mag, 1) }} {{ $d->depth !== null ? number_format($d->depth, 1) : '—' }} @if($d->tsunami) 🌊 Yes @else — @endif {{ number_format($d->latitude, 2) }}, {{ number_format($d->longitude, 2) }} {{ $d->occurred_at?->format('Y-m-d H:i') ?? '—' }} {{ $d->occurred_at?->diffForHumans() }}
No earthquake records yet. Run php artisan countries:sync --disasters to import.
@if($records->hasPages())
{{ $records->links() }}
@endif
@endsection