@extends('app') @section('title', __('DBasic::common.hdetails')) @section('content')
{{-- Hub Data and Sub Navigation --}}
{{ $hub->name }}
@if($hub->ground_handling_cost > 0) @endif @if($hub->fuel_100ll_cost > 0) @endif @if($hub->fuel_mogas_cost > 0) @endif @if($hub->fuel_jeta_cost > 0) @endif
@lang('DBasic::common.icao') {{ $hub->icao }}
@lang('DBasic::common.iata') {{ $hub->iata ?? '--' }}
@lang('DBasic::common.location') {{ $hub->location }} @if (strlen($hub->country) == 2) {{ ' | '.$country->alpha2($hub->country)['name'].' ('.$hub->country.')' }} @else {{ ' | '.$hub->country }} @endif
@lang('DBasic::common.timezone') {{ $hub->timezone }}
@lang('DBasic::common.groundhc') {{ number_format($hub->ground_handling_cost).' '.$units['currency'] }}
@lang('DBasic::common.fuelc') | 100LL {{ DB_FuelCost($hub->fuel_100ll_cost, $units['fuel'], $units['currency']) }}
@lang('DBasic::common.fuelc') | MOGAS {{ DB_FuelCost($hub->fuel_mogas_cost, $units['fuel'], $units['currency']) }}
@lang('DBasic::common.fuelc') | JETA1 {{ DB_FuelCost($hub->fuel_jeta_cost, $units['fuel'], $units['currency']) }}
@if(filled($sundetails)) @endif
@if($is_visible['flights'])
@widget('DBasic::Map', ['source' => $hub->id])
@endif {{-- Sub Navigation Pills --}}
{{-- Hub Map --}}
{{ Widget::AirspaceMap(['width' => '100%', 'height' => '400px', 'lat' => $hub->lat, 'lon' => $hub->lon,]) }}
@if (filled($hub->notes))
@lang('DBasic::common.notes')
{!! $hub->notes !!}
@endif @if ($is_visible['pilots'])
@include('DBasic::hubs.show_pilots')
@widget('DBasic::LeaderBoard', ['hub' => $hub->id, 'source' => 'pilot', 'count' => 5, 'type' => 'flights'])
@widget('DBasic::LeaderBoard', ['hub' => $hub->id, 'source' => 'pilot', 'count' => 5, 'type' => 'time'])
@widget('DBasic::LeaderBoard', ['hub' => $hub->id, 'source' => 'pilot', 'count' => 5, 'type' => 'lrate'])
@endif @if ($is_visible['aircraft'])
@include('DBasic::hubs.show_fleet')
@endif @if ($is_visible['flights'])
@include('DBasic::hubs.show_flights')
@endif @if ($is_visible['reports'])
@include('DBasic::hubs.show_reports')
@endif @if ($is_visible['downloads'])
{{ trans_choice('DBasic::common.hub', 1).' '.trans_choice('common.download',2) }}
@include('downloads.table', ['files' => $hub->files])
@endif
@endsection