Format all blade templates to 2 spaces #530 (#531)

This commit is contained in:
Nabeel S
2020-02-01 13:05:56 -05:00
committed by GitHub
parent 06b47d97e0
commit 59d09c0cec
254 changed files with 7123 additions and 7006 deletions

View File

@@ -2,22 +2,22 @@
@section('title', trans_choice('common.flight', 2))
@section('content')
<div class="row">
<div class="row">
@include('flash::message')
<div class="col-md-9">
<h2>{{ $title ?? trans_choice('common.flight', 2) }}</h2>
@include('flights.table')
<h2>{{ $title ?? trans_choice('common.flight', 2) }}</h2>
@include('flights.table')
</div>
<div class="col-md-3">
@include('flights.nav')
@include('flights.search')
@include('flights.nav')
@include('flights.search')
</div>
</div>
<div class="row">
</div>
<div class="row">
<div class="col-12 text-center">
{{ $flights->links('pagination.default') }}
{{ $flights->links('pagination.default') }}
</div>
</div>
</div>
@endsection
@include('flights.scripts')

View File

@@ -1,17 +1,17 @@
<div class="row">
<div class="col-12">
<div class="box-body">
<div id="map" style="width: 100%; height: 600px"></div>
</div>
<div class="col-12">
<div class="box-body">
<div id="map" style="width: 100%; height: 600px"></div>
</div>
</div>
</div>
@section('scripts')
<script type="text/javascript">
phpvms.map.render_route_map({
route_points: {!! json_encode($map_features['route_points']) !!},
planned_route_line: {!! json_encode($map_features['planned_route_line']) !!},
metar_wms: {!! json_encode(config('map.metar_wms')) !!},
});
</script>
<script type="text/javascript">
phpvms.map.render_route_map({
route_points: {!! json_encode($map_features['route_points']) !!},
planned_route_line: {!! json_encode($map_features['planned_route_line']) !!},
metar_wms: {!! json_encode(config('map.metar_wms')) !!},
});
</script>
@endsection

View File

@@ -1,7 +1,7 @@
<div class="card">
<div class="card-block" style="min-height: 0px; display: flex; justify-content: center; align-items: center;">
<div class="form-group text-right btn-primary my-bids">
<a href="{{ route('frontend.flights.bids') }}">{{ trans_choice('flights.mybid', 2) }}</a>
</div>
<div class="card-block" style="min-height: 0px; display: flex; justify-content: center; align-items: center;">
<div class="form-group text-right btn-primary my-bids">
<a href="{{ route('frontend.flights.bids') }}">{{ trans_choice('flights.mybid', 2) }}</a>
</div>
</div>
</div>

View File

@@ -1,7 +1,7 @@
@section('scripts')
<script>
$(document).ready(function () {
$("button.save_flight").click(async function (e) {
<script>
$(document).ready(function () {
$("button.save_flight").click(async function (e) {
e.preventDefault();
const btn = $(this);
@@ -9,19 +9,19 @@ $(document).ready(function () {
const flight_id = btn.attr('x-id');
if (!btn.hasClass(class_name)) {
await phpvms.bids.addBid(flight_id);
await phpvms.bids.addBid(flight_id);
console.log('successfully saved flight');
btn.addClass(class_name);
alert('@lang("flights.bidadded")');
console.log('successfully saved flight');
btn.addClass(class_name);
alert('@lang("flights.bidadded")');
} else {
await phpvms.bids.removeBid(flight_id);
await phpvms.bids.removeBid(flight_id);
console.log('successfully removed flight');
btn.removeClass(class_name);
alert('@lang("flights.bidremoved")');
console.log('successfully removed flight');
btn.removeClass(class_name);
alert('@lang("flights.bidremoved")');
}
});
});
});
</script>
</script>
@endsection

View File

@@ -2,85 +2,85 @@
@section('title', trans_choice('common.flight', 1).' '.$flight->ident)
@section('content')
<div class="row">
<div class="row">
<div class="col-8">
<div class="row">
<div class="col-12">
<h2>{{ $flight->ident }}</h2>
</div>
<div class="row">
<div class="col-12">
<h2>{{ $flight->ident }}</h2>
</div>
<div class="row">
<div class="col-12">
<table class="table">
<tr>
<td>@lang('common.departure')</td>
<td>
{{ $flight->dpt_airport->name }}
(<a href="{{route('frontend.airports.show', [
</div>
<div class="row">
<div class="col-12">
<table class="table">
<tr>
<td>@lang('common.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>
@ {{ $flight->dpt_time }}
</td>
</tr>
<tr>
<td>@lang('common.arrival')</td>
<td>
{{ $flight->arr_airport->name }}
(<a href="{{route('frontend.airports.show', [
<tr>
<td>@lang('common.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>@lang('flights.alternateairport')</td>
<td>
{{ $flight->alt_airport->name }}
(<a href="{{route('frontend.airports.show', [
@ {{ $flight->arr_time }}</td>
</tr>
@if($flight->alt_airport_id)
<tr>
<td>@lang('flights.alternateairport')</td>
<td>
{{ $flight->alt_airport->name }}
(<a href="{{route('frontend.airports.show', [
'id' => $flight->alt_airport->icao
])}}">{{$flight->alt_airport->icao}}</a>)
</td>
</tr>
@endif
</td>
</tr>
@endif
<tr>
<td>@lang('flights.route')</td>
<td>{{ $flight->route }}</td>
</tr>
<tr>
<td>@lang('flights.route')</td>
<td>{{ $flight->route }}</td>
</tr>
@if(filled($flight->notes))
<tr>
<td>{{ trans_choice('common.note', 2) }}</td>
<td>{{ $flight->notes }}</td>
</tr>
@endif
</table>
</div>
@if(filled($flight->notes))
<tr>
<td>{{ trans_choice('common.note', 2) }}</td>
<td>{{ $flight->notes }}</td>
</tr>
@endif
</table>
</div>
<div class="row">
<div class="col-12">
@include('flights.map')
</div>
</div>
<div class="row">
<div class="col-12">
@include('flights.map')
</div>
</div>
</div>
<div class="col-4">
<h5>{{$flight->dpt_airport_id}} @lang('common.metar')</h5>
{{ Widget::Weather([
'icao' => $flight->dpt_airport_id,
]) }}
<br />
<h5>{{$flight->arr_airport_id}} @lang('common.metar')</h5>
{{ Widget::Weather([
'icao' => $flight->arr_airport_id,
]) }}
@if ($flight->alt_airport_id)
<br />
<h5>{{$flight->dpt_airport_id}} @lang('common.metar')</h5>
{{ Widget::Weather([
'icao' => $flight->dpt_airport_id,
]) }}
<br/>
<h5>{{$flight->arr_airport_id}} @lang('common.metar')</h5>
{{ Widget::Weather([
'icao' => $flight->arr_airport_id,
]) }}
@if ($flight->alt_airport_id)
<br/>
<h5>{{$flight->alt_airport_id}} @lang('common.metar')</h5>
{{ Widget::Weather([
'icao' => $flight->alt_airport_id,
]) }}
@endif
@endif
</div>
</div>
</div>
@endsection