@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('Download', 2) }}

@include('downloads.table', ['files' => $airport->files])
@endif
{{ __('Inbound Flights') }}
@if(!$inbound_flights)
{{ __('No Flight Found') }}
@else @foreach($inbound_flights as $flight) @endforeach
{{ __('Ident') }} {{ __('From') }} {{ __('Departure') }} {{ __('Arrival') }}
{{ $flight->ident }} {{ $flight->dpt_airport->name }} ({{$flight->dpt_airport->icao}}) {{ $flight->dpt_time }} {{ $flight->arr_time }}
@endif
{{ __('Outbound Flights') }}
@if(!$outbound_flights)
{{ __('No Flight Found') }}
@else @foreach($outbound_flights as $flight) @endforeach
{{ __('Ident') }} {{ __('To') }} {{ __('Departure') }} {{ __('Arrival') }}
{{ $flight->ident }} {{ $flight->arr_airport->name }} ({{$flight->arr_airport->icao}}) {{ $flight->dpt_time }} {{ $flight->arr_time }}
@endif
@endsection