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

87 lines
3.0 KiB
PHP
Raw Normal View History

@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')
<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>
2018-05-19 03:18:12 +08:00
<td>@lang('common.departure')</td>
2018-04-07 06:10:45 +08:00
<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>
2018-04-07 06:10:45 +08:00
<tr>
2018-05-19 03:18:12 +08:00
<td>@lang('common.arrival')</td>
2018-04-07 06:10:45 +08:00
<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>
2018-05-19 03:50:20 +08:00
<td>@lang('flights.alternateairport')</td>
2018-04-07 06:10:45 +08:00
<td>
2018-05-18 06:03:30 +08:00
{{ $flight->alt_airport->name }}
(<a href="{{route('frontend.airports.show', [
'id' => $flight->alt_airport->icao
])}}">{{$flight->alt_airport->icao}}</a>)
2018-04-07 06:10:45 +08:00
</td>
</tr>
@endif
2018-04-07 06:10:45 +08:00
<tr>
2018-05-19 03:18:12 +08:00
<td>@lang('common.route')</td>
2018-04-07 06:10:45 +08:00
<td>{{ $flight->route }}</td>
</tr>
2018-04-07 06:10:45 +08:00
@if(filled($flight->notes))
<tr>
2018-05-19 03:18:12 +08:00
<td>{{ trans_choice('common.note', 2) }}</td>
2018-04-07 06:10:45 +08:00
<td>{{ $flight->notes }}</td>
</tr>
@endif
</table>
</div>
</div>
<div class="row">
<div class="col-12">
@include('flights.map')
</div>
</div>
</div>
2018-04-07 06:10:45 +08:00
<div class="col-4">
2018-05-19 03:18:12 +08:00
<h5>{{$flight->dpt_airport_id}} @lang('common.metar')</h5>
{{ Widget::Weather([
'icao' => $flight->dpt_airport_id,
]) }}
<br />
2018-05-19 03:18:12 +08:00
<h5>{{$flight->arr_airport_id}} @lang('common.metar')</h5>
{{ Widget::Weather([
'icao' => $flight->arr_airport_id,
]) }}
@if ($flight->alt_airport_id)
2018-05-18 06:03:30 +08:00
<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,
]) }}
@endif
</div>
</div>
2017-08-03 04:12:26 +08:00
@endsection