2018-03-28 00:40:37 +08:00
|
|
|
@extends('app')
|
|
|
|
@section('title', $airport->full_name)
|
|
|
|
|
|
|
|
@section('content')
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="row" style="margin-bottom: 30px;">
|
2018-04-01 04:57:30 +08:00
|
|
|
<div class="col-12">
|
2020-02-02 02:05:56 +08:00
|
|
|
<h2>{{ $airport->full_name }}</h2>
|
2018-03-28 00:40:37 +08:00
|
|
|
</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">
|
2020-02-02 02:05:56 +08:00
|
|
|
{{ Widget::Weather([
|
|
|
|
'icao' => $airport->icao,
|
|
|
|
]) }}
|
2018-04-01 04:57:30 +08:00
|
|
|
</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">
|
2020-02-02 02:05:56 +08:00
|
|
|
{{ Widget::AirspaceMap([
|
|
|
|
'width' => '100%',
|
|
|
|
'height' => '400px',
|
|
|
|
'lat' => $airport->lat,
|
|
|
|
'lon' => $airport->lon,
|
|
|
|
]) }}
|
2018-03-28 00:40:37 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2018-04-03 01:55:37 +08:00
|
|
|
{{-- There are files uploaded and a user is logged in--}}
|
2018-04-04 08:21:42 +08:00
|
|
|
@if(count($airport->files) > 0 && Auth::check())
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="col-12">
|
|
|
|
<h3>{{ trans_choice('common.download', 2) }}</h3>
|
|
|
|
@include('downloads.table', ['files' => $airport->files])
|
|
|
|
</div>
|
2018-04-03 01:55:37 +08:00
|
|
|
@endif
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2018-04-04 08:21:42 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="row">
|
2018-04-04 08:21:42 +08:00
|
|
|
<div class="col-6">
|
2020-02-02 02:05:56 +08:00
|
|
|
<h5>@lang('flights.inbound')</h5>
|
|
|
|
@if(!$inbound_flights)
|
|
|
|
<div class="jumbotron text-center">
|
|
|
|
@lang('flights.none')
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="text-left">@lang('airports.ident')</th>
|
|
|
|
<th class="text-left">@lang('airports.departure')</th>
|
|
|
|
<th>@lang('flights.dep')</th>
|
|
|
|
<th>@lang('flights.arr')</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
@foreach($inbound_flights as $flight)
|
|
|
|
<tr>
|
|
|
|
<td class="text-left">
|
|
|
|
<a href="{{ route('frontend.flights.show', [$flight->id]) }}">
|
|
|
|
{{ $flight->ident }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="text-left">{{ $flight->dpt_airport->name }}
|
|
|
|
(<a href="{{route('frontend.airports.show',
|
2018-04-04 08:21:42 +08:00
|
|
|
['id'=>$flight->dpt_airport->icao])}}">{{$flight->dpt_airport->icao}}</a>)
|
2020-02-02 02:05:56 +08:00
|
|
|
</td>
|
|
|
|
<td>{{ $flight->dpt_time }}</td>
|
|
|
|
<td>{{ $flight->arr_time }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
2018-04-04 08:21:42 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-6">
|
2020-02-02 02:05:56 +08:00
|
|
|
<h5>@lang('flights.outbound')</h5>
|
|
|
|
@if(!$outbound_flights)
|
|
|
|
<div class="jumbotron text-center">
|
|
|
|
@lang('flights.none')
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="text-left">@lang('airports.ident')</th>
|
|
|
|
<th class="text-left">@lang('airports.arrival')</th>
|
|
|
|
<th>@lang('flights.dep')</th>
|
|
|
|
<th>@lang('flights.arr')</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
@foreach($outbound_flights as $flight)
|
|
|
|
<tr>
|
|
|
|
<td class="text-left">
|
|
|
|
<a href="{{ route('frontend.flights.show', [$flight->id]) }}">
|
|
|
|
{{ $flight->ident }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="text-left">{{ $flight->arr_airport->name }}
|
|
|
|
(<a href="{{route('frontend.airports.show',
|
2018-04-04 08:21:42 +08:00
|
|
|
['id'=>$flight->arr_airport->icao])}}">{{$flight->arr_airport->icao}}</a>)
|
2020-02-02 02:05:56 +08:00
|
|
|
</td>
|
|
|
|
<td>{{ $flight->dpt_time }}</td>
|
|
|
|
<td>{{ $flight->arr_time }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
@endif
|
2018-03-28 00:40:37 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2018-03-28 00:40:37 +08:00
|
|
|
@endsection
|