2018-03-28 00:40:37 +08:00
|
|
|
@extends('app')
|
|
|
|
@section('title', $airport->full_name)
|
|
|
|
|
|
|
|
@section('content')
|
2018-04-03 01:55:37 +08:00
|
|
|
<div class="row" style="margin-bottom: 30px;">
|
2018-04-01 04:57:30 +08:00
|
|
|
<div class="col-12">
|
2018-03-28 00:40:37 +08:00
|
|
|
<h2 class="description">{{ $airport->full_name }}</h2>
|
|
|
|
</div>
|
2018-04-01 04:57:30 +08:00
|
|
|
|
2018-04-03 01:55:37 +08:00
|
|
|
{{-- Show the weather widget in one column --}}
|
|
|
|
<div class="col-5">
|
2018-04-03 11:35:25 +08:00
|
|
|
{{ Widget::Weather([
|
2018-04-01 04:57:30 +08:00
|
|
|
'icao' => $airport->icao,
|
|
|
|
]) }}
|
|
|
|
</div>
|
2018-04-03 01:55:37 +08:00
|
|
|
|
|
|
|
{{-- Show the airspace map in the other column --}}
|
2018-04-01 04:57:30 +08:00
|
|
|
<div class="col-7">
|
2018-04-03 11:35:25 +08:00
|
|
|
{{ Widget::AirspaceMap([
|
2018-03-28 00:40:37 +08:00
|
|
|
'width' => '100%',
|
2018-04-01 04:57:30 +08:00
|
|
|
'height' => '400px',
|
2018-03-28 00:40:37 +08:00
|
|
|
'lat' => $airport->lat,
|
|
|
|
'lon' => $airport->lon,
|
|
|
|
]) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-03 01:55:37 +08:00
|
|
|
<div class="row" style="margin-bottom: 30px;">
|
|
|
|
{{-- There are files uploaded and a user is logged in--}}
|
|
|
|
@if($airport->files && Auth::check())
|
|
|
|
<div class="col-12">
|
|
|
|
<h3 class="description">Downloads</h3>
|
2018-04-03 11:35:25 +08:00
|
|
|
@include('downloads.table', ['files' => $airport->files])
|
2018-04-03 01:55:37 +08:00
|
|
|
</div>
|
|
|
|
@endif
|
2018-04-01 04:57:30 +08:00
|
|
|
</div>
|
2018-03-28 00:40:37 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<h3 class="description">Inbound Flights</h3>
|
|
|
|
@if(!$inbound_flights)
|
2018-04-03 01:55:37 +08:00
|
|
|
<div class="jumbotron text-center">
|
2018-03-28 00:40:37 +08:00
|
|
|
no flights found
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
@each('airports.table', $inbound_flights, 'flight')
|
|
|
|
@endif
|
|
|
|
<h3 class="description">Outbound Flights</h3>
|
2018-04-03 01:55:37 +08:00
|
|
|
@if(!$outbound_flights)
|
|
|
|
<div class="jumbotron text-center">
|
|
|
|
no flights found
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
@each('airports.table', $outbound_flights, 'flight')
|
|
|
|
@endif
|
2018-03-28 00:40:37 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|