2018-03-12 07:00:42 +08:00
|
|
|
@extends('app')
|
2018-05-19 03:18:12 +08:00
|
|
|
@section('title', trans_choice('common.flight', 1).' '.$flight->ident)
|
2017-08-03 04:12:26 +08:00
|
|
|
|
|
|
|
@section('content')
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="row">
|
2018-04-07 06:10:45 +08:00
|
|
|
<div class="col-8">
|
2020-02-02 02:05:56 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h2>{{ $flight->ident }}</h2>
|
2018-04-07 06:10:45 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<td>@lang('common.departure')</td>
|
|
|
|
<td>
|
2020-02-04 01:23:58 +08:00
|
|
|
{{ optional($flight->dpt_airport)->name ?? $flight->dpt_airport_id }}
|
2020-02-02 02:05:56 +08:00
|
|
|
(<a href="{{route('frontend.airports.show', [
|
2020-02-04 01:23:58 +08:00
|
|
|
'id' => $flight->dpt_airport_id
|
|
|
|
])}}">{{$flight->dpt_airport_id}}</a>)
|
2020-02-02 02:05:56 +08:00
|
|
|
@ {{ $flight->dpt_time }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-12-21 09:12:39 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
<tr>
|
|
|
|
<td>@lang('common.arrival')</td>
|
|
|
|
<td>
|
2020-02-04 01:23:58 +08:00
|
|
|
{{ optional($flight->arr_airport)->name ?? $flight->arr_airport_id }}
|
2020-02-02 02:05:56 +08:00
|
|
|
(<a href="{{route('frontend.airports.show', [
|
2020-02-04 01:23:58 +08:00
|
|
|
'id' => $flight->arr_airport_id
|
|
|
|
])}}">{{$flight->arr_airport_id }}</a>)
|
2020-02-02 02:05:56 +08:00
|
|
|
@ {{ $flight->arr_time }}</td>
|
|
|
|
</tr>
|
|
|
|
@if($flight->alt_airport_id)
|
|
|
|
<tr>
|
|
|
|
<td>@lang('flights.alternateairport')</td>
|
|
|
|
<td>
|
2020-02-04 01:23:58 +08:00
|
|
|
{{ optional($flight->alt_airport)->name ?? $flight->alt_airport_id }}
|
2020-02-02 02:05:56 +08:00
|
|
|
(<a href="{{route('frontend.airports.show', [
|
2020-02-04 01:23:58 +08:00
|
|
|
'id' => $flight->alt_airport_id
|
|
|
|
])}}">{{$flight->alt_airport_id}}</a>)
|
2020-02-02 02:05:56 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2017-12-21 09:12:39 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
<tr>
|
|
|
|
<td>@lang('flights.route')</td>
|
|
|
|
<td>{{ $flight->route }}</td>
|
|
|
|
</tr>
|
2017-12-21 09:12:39 +08:00
|
|
|
|
2020-02-02 02:05:56 +08:00
|
|
|
@if(filled($flight->notes))
|
|
|
|
<tr>
|
|
|
|
<td>{{ trans_choice('common.note', 2) }}</td>
|
|
|
|
<td>{{ $flight->notes }}</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
</table>
|
2018-04-07 06:10:45 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
@include('flights.map')
|
2018-04-07 06:10:45 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-12-21 09:12:39 +08:00
|
|
|
</div>
|
2018-04-07 06:10:45 +08:00
|
|
|
<div class="col-4">
|
2020-02-02 02:05:56 +08:00
|
|
|
<h5>{{$flight->dpt_airport_id}} @lang('common.metar')</h5>
|
|
|
|
{{ Widget::Weather([
|
|
|
|
'icao' => $flight->dpt_airport_id,
|
|
|
|
]) }}
|
|
|
|
<br/>
|
|
|
|
<h5>{{$flight->arr_airport_id}} @lang('common.metar')</h5>
|
|
|
|
{{ Widget::Weather([
|
|
|
|
'icao' => $flight->arr_airport_id,
|
|
|
|
]) }}
|
|
|
|
@if ($flight->alt_airport_id)
|
|
|
|
<br/>
|
2018-05-19 03:18:12 +08:00
|
|
|
<h5>{{$flight->alt_airport_id}} @lang('common.metar')</h5>
|
2018-05-18 06:03:30 +08:00
|
|
|
{{ Widget::Weather([
|
|
|
|
'icao' => $flight->alt_airport_id,
|
|
|
|
]) }}
|
2020-02-02 02:05:56 +08:00
|
|
|
@endif
|
2018-04-01 04:57:30 +08:00
|
|
|
</div>
|
2020-02-02 02:05:56 +08:00
|
|
|
</div>
|
2017-08-03 04:12:26 +08:00
|
|
|
@endsection
|