phpvms/resources/views/layouts/default/flights/show.blade.php
lordwilbur ba8a819c7d - fixed an error on finance in admin panel
- flight ident now use this format: VA IATA(if empty ICAO) + Flight Number + - + Flight Code (without C) + - + Flight Leg (without L)
- added function __trans_choice in helpers.php for translation
- fixed error in flight edit/insert panel not showing/inserting Tuesday in days
- fixed an error occurring when metar retrieved is empty
- edited now-ui-kit.css to align login fields correctly
- added /public/assets/frontend/js/core/jquery-3.3.1.min.js to fix a missed resource error in authentication pages
- added translations file for en and it locales
- translated all the frontend templates
2018-05-21 09:53:08 -05:00

77 lines
2.5 KiB
PHP

@extends('app')
@section('title', __trans_choice('Flight', 1).' '.$flight->ident)
@section('content')
<div class="row">
<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>
<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
<tr>
<td>{{ __('Route') }}</td>
<td>{{ $flight->route }}</td>
</tr>
@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>
</div>
<div class="col-4">
<h5>{{$flight->dpt_airport_id}} METAR</h5>
{{ Widget::Weather([
'icao' => $flight->dpt_airport_id,
]) }}
<br />
<h5>{{$flight->arr_airport_id}} METAR</h5>
{{ Widget::Weather([
'icao' => $flight->arr_airport_id,
]) }}
</div>
</div>
@endsection