@extends('layouts.landing') @section('title', 'Global Ports - DaisyRisk Global Supply Chain Intelligence') @section('content')
{{-- ========== HEADER ========== --}}

Global Ports

Explore international ports monitored by DaisyRisk. Select a port to view detailed information and monitoring data.

{{ number_format(\App\Models\Port::count()) }} Ports Monitored
{{-- ========== SEARCH & FILTER BAR ========== --}}
{{-- Search input --}}
🔍
{{-- Country Select filter --}}
{{-- Status Select filter --}}
{{-- Filter & Reset Buttons --}}
@if($search || $selectedCountry || $selectedStatus) Reset @endif
{{-- ========== PORTS CATALOG GRID ========== --}} @if($ports->count() > 0)
@foreach($ports as $port)
{{-- Port Identity Details --}}

{{ $port->port_name }}

@php $statusColor = match($port->status ?? 'Open') { 'Open' => 'background-color: #DEF7EC; color: #03543F;', 'Limited' => 'background-color: #FEF3C7; color: #92400E;', 'Congested' => 'background-color: #FFEDD5; color: #9A3412;', 'Closed' => 'background-color: #FDE8E8; color: #9B1C1C;', default => 'background-color: #F1F5F9; color: #475569;' }; $statusLabel = $port->status ?? 'Unknown'; @endphp {{ $statusLabel }}
{{-- Metadata list --}} {{-- CTA Details Button --}}
@endforeach
{{-- ========== PAGINATION ========== --}} @if($ports->hasPages())
{{-- Previous --}} @if ($ports->onFirstPage()) ← Sebelumnya @else ← Sebelumnya @endif {{-- Pages links --}}
@foreach ($ports->appends(request()->query())->getUrlRange(max(1, $ports->currentPage() - 2), min($ports->lastPage(), $ports->currentPage() + 2)) as $page => $url) @if ($page == $ports->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach
{{-- Next --}} @if ($ports->hasMorePages()) Selanjutnya → @else Selanjutnya → @endif
@endif @else {{-- ========== EMPTY STATE ========== --}}
⚓

No ports match your search.

Cobalah untuk memperbarui filter atau kata kunci pencarian Anda untuk menemukan pelabuhan yang diinginkan.

Lihat Semua Pelabuhan
@endif
@endsection