@extends('layouts.user')
@section('title', $port->port_name . ' β Port Details')
@push('styles')
@endpush
@section('content')
{{-- Flower Decorations --}}
{{-- Back Button --}}
β Back to Port Dashboard
{{-- Port Header --}}
{{-- Detail Grid --}}
{{-- Port Information --}}
π Port Information
UNLOCODE
{{ $port->port_code ?? 'N/A' }}
City
{{ $port->city ?: 'N/A' }}
Latitude
{{ $port->latitude ? number_format($port->latitude, 6) : 'N/A' }}
Longitude
{{ $port->longitude ? number_format($port->longitude, 6) : 'N/A' }}
Port Size
@if($port->capacity >= 50000)
Large Port
@elseif($port->capacity >= 10000)
Medium Port
@else
Small Port
@endif
Capacity
{{ $port->capacity ? number_format($port->capacity) . ' TEU' : 'N/A' }}
Congestion Level
{{ $port->congestion_level ?? 0 }}%
Last Updated
{{ $port->updated_at ? $port->updated_at->format('M d, Y') : 'N/A' }}
{{-- Weather Information --}}
{{-- Country Information --}}
π Country Details
Country
{{ $port->country->name ?? 'Unknown' }}
ISO Code
{{ $port->country->iso2 ?? 'N/A' }}
Region
{{ $port->country->region ?? 'N/A' }}
Capital
{{ $port->country->capital ?? 'N/A' }}
Population
{{ $port->country->population ? number_format($port->country->population) : 'N/A' }}
GDP (USD)
{{ $port->country->gdp ? '$' . number_format($port->country->gdp / 1000000000, 1) . 'B' : 'N/A' }}
{{-- Risk Assessment --}}
β οΈ Risk Assessment
Overall Risk
@if($port->congestion_level >= 70)
π΄ High
@elseif($port->congestion_level >= 30)
π‘ Medium
@else
π’ Low
@endif
Congestion Risk
{{ $port->congestion_level ?? 0 }}%
Operational Status
{{ $port->status ?? 'Open' }}
Reliability
@if($port->congestion_level < 30)
Very High
@elseif($port->congestion_level < 50)
High
@elseif($port->congestion_level < 70)
Moderate
@else
Low
@endif
{{-- Map Section --}}
@if($port->latitude && $port->longitude)
@endif
{{-- Nearby Ports --}}
@if($nearbyPorts->count() > 0)
π Nearby Ports (within 100km)
@foreach($nearbyPorts as $nearby)
β
{{ $nearby->port_name }}
@if($nearby->country?->flag_url)
@endif
{{ $nearby->country->name ?? 'Unknown' }}
{{ $nearby->status ?? 'Open' }}
@endforeach
@endif
{{-- Action Buttons --}}
β Back to Ports
@if($port->latitude && $port->longitude)
@endif
@endsection
@push('scripts')
@endpush