@extends('app') @section('title', $airport->full_name) @section('content')

{{ $airport->full_name }} @if (filled($airport->elevation)) {{ '| ' . $airport->elevation . 'ft' }} @endif

{{-- Show the weather widget in one column --}}
@lang('dashboard.weatherat', ['ICAO' => $airport->icao])
{{ Widget::Weather(['icao' => $airport->icao]) }}
{{-- Show the airspace map in the other column --}}
{{ __('common.map') }}
{{ Widget::AirspaceMap(['width' => '100%', 'height' => '400px', 'lat' => $airport->lat, 'lon' => $airport->lon]) }}
@if (filled($airport->notes))
{{ __('airports.notes') }}
{!! $airport->notes !!}
@endif
@if (count($airport->files) > 0 && Auth::check()) {{-- There are files uploaded and a user is logged in --}}
{{ trans_choice('common.download', 2) }}
@include('downloads.table', ['files' => $airport->files])
@endif
@lang('flights.inbound')
@if (!$inbound_flights)
@lang('flights.none')
@else @foreach ($inbound_flights as $flight) @endforeach
@lang('airports.ident') @lang('airports.departure') @lang('flights.dep') @lang('flights.arr')
{{ $flight->ident }} {{ optional($flight->dpt_airport)->name }} ({{ $flight->dpt_airport_id }}) {{ $flight->dpt_time }} {{ $flight->arr_time }}
@endif
@lang('flights.outbound')
@if (!$outbound_flights)
@lang('flights.none')
@else @foreach ($outbound_flights as $flight) @endforeach
@lang('airports.ident') @lang('airports.arrival') @lang('flights.dep') @lang('flights.arr')
{{ $flight->ident }} {{ $flight->arr_airport->name }} ({{ $flight->arr_airport->icao }}) {{ $flight->dpt_time }} {{ $flight->arr_time }}
@endif
@endsection