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">
|
2018-04-07 06:10:45 +08:00
|
|
|
<div class="col-8">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h2>{{ $flight->ident }}</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<td>Departure</td>
|
|
|
|
<td>
|
|
|
|
{{ $flight->dpt_airport->name }}
|
|
|
|
(<a href="{{route('frontend.airports.show', [
|
|
|
|
'id' => $flight->dpt_airport->icao
|
|
|
|
])}}">{{$flight->dpt_airport->icao}}</a>)
|
|
|
|
@ {{ $flight->dpt_time }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-12-21 09:12:39 +08:00
|
|
|
|
2018-04-07 06:10:45 +08:00
|
|
|
<tr>
|
|
|
|
<td>Arrival</td>
|
|
|
|
<td>
|
|
|
|
{{ $flight->arr_airport->name }}
|
|
|
|
(<a href="{{route('frontend.airports.show', [
|
|
|
|
'id' => $flight->arr_airport->icao
|
|
|
|
])}}">{{$flight->arr_airport->icao}}</a>)
|
|
|
|
@ {{ $flight->arr_time }}</td>
|
|
|
|
</tr>
|
|
|
|
@if($flight->alt_airport_id)
|
|
|
|
<tr>
|
|
|
|
<td>Alternate Airport</td>
|
|
|
|
<td>
|
|
|
|
{{ $flight->alt_airport->full_name }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2017-12-21 09:12:39 +08:00
|
|
|
|
2018-04-07 06:10:45 +08:00
|
|
|
<tr>
|
|
|
|
<td>Route</td>
|
|
|
|
<td>{{ $flight->route }}</td>
|
|
|
|
</tr>
|
2017-12-21 09:12:39 +08:00
|
|
|
|
2018-04-07 06:10:45 +08:00
|
|
|
@if(filled($flight->notes))
|
|
|
|
<tr>
|
|
|
|
<td>Notes</td>
|
|
|
|
<td>{{ $flight->notes }}</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
@include('flights.map')
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-21 09:12:39 +08:00
|
|
|
</div>
|
2018-04-07 06:10:45 +08:00
|
|
|
<div class="col-4">
|
2018-04-01 04:57:30 +08:00
|
|
|
<h5>{{$flight->dpt_airport_id}} METAR</h5>
|
2018-04-03 11:35:25 +08:00
|
|
|
{{ Widget::Weather([
|
2018-04-01 04:57:30 +08:00
|
|
|
'icao' => $flight->dpt_airport_id,
|
|
|
|
]) }}
|
2018-04-08 09:52:12 +08:00
|
|
|
<br />
|
2018-04-01 04:57:30 +08:00
|
|
|
<h5>{{$flight->arr_airport_id}} METAR</h5>
|
2018-04-03 11:35:25 +08:00
|
|
|
{{ Widget::Weather([
|
2018-04-01 04:57:30 +08:00
|
|
|
'icao' => $flight->arr_airport_id,
|
|
|
|
]) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-08-03 04:12:26 +08:00
|
|
|
@endsection
|