@foreach($flights as $flight)
{{-- NOTE: Don't remove the "save_flight" class, or the x-id attribute. It will break the AJAX to save/delete "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
{{--
--}} {{ strtoupper(trans('frontend.flights.dep')) }}  {{ $flight->dpt_airport->name }} ({{$flight->dpt_airport->icao}}) @if($flight->dpt_time), {{ $flight->dpt_time }}@endif
{{ strtoupper(trans('frontend.flights.arr')) }}  {{ $flight->arr_airport->name }} ({{$flight->arr_airport->icao}}) @if($flight->arr_time), {{ $flight->arr_time }}@endif
@if($flight->distance) {{ strtoupper(trans('frontend.global.distance')) }}  {{ $flight->distance }} {{ setting('units.distance') }} @endif
@if($flight->level) {{ strtoupper(trans('frontend.flights.level')) }}  {{ $flight->level }} {{ setting('units.altitude') }} @endif
{{ strtoupper(trans('frontend.global.route')) }}  {{ $flight->route }}
@endforeach