@extends('app') @section('title', $airport->full_name) @include('theme_helpers') @php $DBasic = isset($DBasic) ? $DBasic : check_module('DisposableBasic'); $units = isset($units) ? $units : DT_GetUnits(); @endphp @section('content')
{{-- LEFT --}}
{{ $airport->name }}
@if(filled($airport->timezone)) @endif @if($airport->ground_handling_cost > 0) @endif @if($airport->fuel_mogas_cost > 0) @endif @if($airport->fuel_100ll_cost > 0) @endif @if($airport->fuel_jeta_cost > 0) @endif @if($DBasic) @endif
@lang('disposable.icao_iata_code') {{ $airport->icao.' / '.$airport->iata }}
@lang('user.location') / @lang('common.country') {{ $airport->location.' / '.$airport->country }}
@lang('common.timezone') {{ $airport->timezone }}
@lang('disposable.gh_cost') {{ number_format($airport->ground_handling_cost).' '.$units['currency'].'/'.trans_choice('common.flight',1) }}
@lang('disposable.mogas_cost') {{ DT_FuelCost($airport->fuel_mogas_cost, $units['fuel'], $units['currency']) }}
@lang('disposable.100ll_cost') {{ DT_FuelCost($airport->fuel_100ll_cost, $units['fuel'], $units['currency']) }}
@lang('disposable.jeta1_cost') {{ DT_FuelCost($airport->fuel_jeta_cost, $units['fuel'], $units['currency']) }}
@lang('disposable.avg_taxi_times') Out: {{ DB_AvgTaxiTime($airport->id, 'out', 10) }} min | In: {{ DB_AvgTaxiTime($airport->id, 'in', 5) }} min
@if($DBasic) @endif
@if($DBasic && Theme::getSetting('gen_map_flight'))
@widget('DBasic::Map', ['source' => $airport->id])
@endif {{-- Show Pills For Map/WX/Downloads--}}
{{-- RIGHT --}}
{{ $airport->full_name }}
@widget('AirspaceMap', ['width' => '100%', 'height' => '500px', 'lat' => $airport->lat, 'lon' => $airport->lon])
@widget('Weather', ['icao' => $airport->icao])
@if($DBasic)
@widget('DBasic::Notams', ['icao' => $airport->icao])
@endif
@if($DBasic)
{{ $airport->full_name }}
@include('DBasic::pages.livewx_map' , ['lat' => $airport->lat, 'lon' => $airport->lon, 'zoom' => 8, 'height' => '500px', 'marker' => true])
@endif @if(count($airport->files) > 0 && Auth::check())
{{ trans_choice('common.download', 2) }}
@include('downloads.table', ['files' => $airport->files])
@endif @if(filled($airport->notes) && Auth::check())
@lang('disposable.notes')
{!! $airport->notes !!}
@endif
@if($inbound_flights)
@lang('flights.inbound')
@include('flights.table_compact', ['flights' => $inbound_flights, 'type' => 'arr'])
@endif
@if($outbound_flights)
@lang('flights.outbound')
@include('flights.table_compact', ['flights' => $outbound_flights, 'type' => 'dep'])
@endif
@if($DBasic)
@widget('DBasic::AirportAssets', ['type' => 'aircraft', 'location' => $airport->id])
@widget('DBasic::AirportAssets', ['type' => 'pilots', 'location' => $airport->id])
@widget('DBasic::AirportAssets', ['type' => 'pireps', 'location' => $airport->id])
@endif @endsection