@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(__('flights.dep')) }}  {{ $flight->dpt_airport->name }} ({{$flight->dpt_airport->icao}}) @if($flight->dpt_time), {{ $flight->dpt_time }}@endif
{{ strtoupper(__('flights.arr')) }}  {{ $flight->arr_airport->name }} ({{$flight->arr_airport->icao}}) @if($flight->arr_time), {{ $flight->arr_time }}@endif
@if($flight->distance) {{ strtoupper(__('common.distance')) }}  {{ $flight->distance }} {{ setting('units.distance') }} @endif
@if($flight->level) {{ strtoupper(__('flights.level')) }}  {{ $flight->level }} {{ setting('units.altitude') }} @endif
{{ strtoupper(__('flights.route')) }}  {{ $flight->route }}
@endforeach