@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($airport->files && Auth::check())

Downloads

@include('downloads.table', ['files' => $airport->files])
@endif

Inbound Flights

@if(!$inbound_flights)
no flights found
@else @each('airports.table', $inbound_flights, 'flight') @endif

Outbound Flights

@if(!$outbound_flights)
no flights found
@else @each('airports.table', $outbound_flights, 'flight') @endif
@endsection