From 0d53c5487d153e75d0208babcdeefcbc5abed6b6 Mon Sep 17 00:00:00 2001 From: lordwilbur Date: Sat, 19 May 2018 00:55:08 +0200 Subject: [PATCH] pilot unable to place bids on flight if pilots.only_flights_from_current = true and departure airport is not the same pilot's current airport. --- .../views/layouts/default/flights/table.blade.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/resources/views/layouts/default/flights/table.blade.php b/resources/views/layouts/default/flights/table.blade.php index 881701ab..57c41c24 100644 --- a/resources/views/layouts/default/flights/table.blade.php +++ b/resources/views/layouts/default/flights/table.blade.php @@ -17,29 +17,31 @@ "x-saved-class" is the class to add/remove if the bid exists or not If you change it, remember to change it in the in-array line as well --}} + @if (!setting('pilots.only_flights_from_current') || $flight->dpt_airport->icao == Auth::user()->current_airport->icao) + @endif
{{--
--}} - DEP  + {{ strtoupper(trans('frontend.flights.dep')) }}  {{ $flight->dpt_airport->name }} ({{$flight->dpt_airport->icao}}) @if($flight->dpt_time), {{ $flight->dpt_time }}@endif
- ARR  + {{ strtoupper(trans('frontend.flights.arr')) }}  {{ $flight->arr_airport->name }} (DISTANCE  + {{ strtoupper(trans('frontend.global.distance')) }}  {{ $flight->distance }} {{ setting('units.distance') }} @endif
@if($flight->level) - LEVEL  + {{ strtoupper(trans('frontend.flights.level')) }}  {{ $flight->level }} {{ setting('units.altitude') }} @endif
- ROUTE  + {{ strtoupper(trans('frontend.global.route')) }}  {{ $flight->route }}