phpvms/resources/views/layouts/default/flights/show.blade.php

54 lines
1.4 KiB
PHP
Raw Normal View History

@extends('app')
@section('title', 'Flight '.$flight->ident)
2017-08-03 04:12:26 +08:00
@section('content')
<div class="row">
<div class="col-md-12">
<h2 class="description">{{ $flight->ident }} - {{ $flight->dpt_airport->full_name }} to {{ $flight->arr_airport->full_name }}</h2>
</div>
</div>
2017-08-03 04:12:26 +08:00
<div class="row">
<div class="col-md-12">
<table class="table">
<tr>
<td>Departure</td>
<td>{{ $flight->dpt_airport->icao }} @ {{ $flight->dpt_time }}</td>
</tr>
<tr>
<td>Arrival</td>
<td>{{ $flight->arr_airport->icao }} @ {{ $flight->arr_time }}</td>
</tr>
<tr>
<td>Route Code/Leg:</td>
<td>{{ $flight->route_code ?: '-' }}/{{ $flight->route_leg ?: '-' }}</td>
</tr>
2017-08-03 04:12:26 +08:00
<tr>
<td>Alternate Airport</td>
<td>
@if($flight->alt_airport_id)
{{ $flight->alt_airport->full_name }}
@else
-
@endif
</td>
</tr>
<tr>
<td>Route</td>
<td>{{ $flight->route }}</td>
</tr>
<tr>
<td>Notes</td>
<td>{{ $flight->notes }}</td>
</tr>
</table>
</div>
</div>
@include("flights.map")
2017-08-03 04:12:26 +08:00
@endsection