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

{{ $airport->full_name }}

{{-- Show the weather widget in one column --}}
{{ Widget::Weather([ 'icao' => $airport->icao, ]) }}
{{-- Show the airspace map in the other column --}}
{{ Widget::AirspaceMap([ 'width' => '100%', 'height' => '400px', 'lat' => $airport->lat, 'lon' => $airport->lon, ]) }}
{{-- There are files uploaded and a user is logged in--}} @if(count($airport->files) > 0 && Auth::check())

{{ 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 }} {{ $flight->dpt_airport->name }} ({{$flight->dpt_airport->icao}}) {{ $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