2018-03-12 07:00:42 +08:00
|
|
|
@extends('app')
|
2017-12-21 09:12:39 +08:00
|
|
|
@section('title', 'Flight '.$flight->ident)
|
2017-08-03 04:12:26 +08:00
|
|
|
|
|
|
|
@section('content')
|
2017-12-20 05:19:06 +08:00
|
|
|
<div class="row">
|
2017-12-21 09:12:39 +08:00
|
|
|
<div class="col-md-12">
|
2018-04-01 04:57:30 +08:00
|
|
|
<h2 class="description">{{ $flight->ident }}</h2>
|
2017-12-21 09:12:39 +08:00
|
|
|
</div>
|
2017-12-20 05:19:06 +08:00
|
|
|
</div>
|
2017-08-03 04:12:26 +08:00
|
|
|
|
2017-12-21 09:12:39 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<td>Departure</td>
|
2018-04-01 04:57:30 +08:00
|
|
|
<td>
|
|
|
|
<a href="{{route('frontend.airports.show', ['id'=>$flight->dpt_airport_id])}}">
|
|
|
|
{{ $flight->dpt_airport->full_name }}</a>
|
|
|
|
@ {{ $flight->dpt_time }}</td>
|
2017-12-21 09:12:39 +08:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Arrival</td>
|
2018-04-01 04:57:30 +08:00
|
|
|
<td>
|
|
|
|
<a href="{{route('frontend.airports.show', ['id'=>$flight->arr_airport_id])}}">
|
|
|
|
{{ $flight->arr_airport->full_name }}</a> @ {{ $flight->arr_time }}</td>
|
2017-12-21 09:12:39 +08:00
|
|
|
</tr>
|
2018-04-01 04:57:30 +08:00
|
|
|
@if($flight->alt_airport_id)
|
2017-12-21 09:12:39 +08:00
|
|
|
<tr>
|
|
|
|
<td>Alternate Airport</td>
|
|
|
|
<td>
|
2018-04-01 04:57:30 +08:00
|
|
|
{{ $flight->alt_airport->full_name }}
|
2017-12-21 09:12:39 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2018-04-01 04:57:30 +08:00
|
|
|
@endif
|
2017-12-21 09:12:39 +08:00
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Route</td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td>{{ $flight->route }}</td>
|
2017-12-21 09:12:39 +08:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Notes</td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td>{{ $flight->notes }}</td>
|
2017-12-21 09:12:39 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-01 04:57:30 +08:00
|
|
|
<div style="padding: 10px;"></div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-6">
|
|
|
|
<h5>{{$flight->dpt_airport_id}} METAR</h5>
|
|
|
|
{{ Widget::checkWx([
|
|
|
|
'icao' => $flight->dpt_airport_id,
|
|
|
|
]) }}
|
|
|
|
</div>
|
|
|
|
<div class="col-6">
|
|
|
|
<h5>{{$flight->arr_airport_id}} METAR</h5>
|
|
|
|
{{ Widget::checkWx([
|
|
|
|
'icao' => $flight->arr_airport_id,
|
|
|
|
]) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@include('flights.map')
|
2017-08-03 04:12:26 +08:00
|
|
|
@endsection
|