@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())

Downloads

@include('downloads.table', ['files' => $airport->files])
@endif
Inbound Flights
@if(!$inbound_flights)
no flights 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 flights 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