@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 --}}
DEP  {!! $flight->dpt_airport->icao !!}@if($flight->dpt_time), {!! $flight->dpt_time !!}@endif
ARR  {!! $flight->arr_airport->icao !!}@if($flight->arr_time), {!! $flight->arr_time !!}@endif
@if($flight->distance) DISTANCE  {!! $flight->distance !!} {!! setting('general.distance_unit') !!} @endif
@if($flight->level) LEVEL  {!! $flight->level !!} {!! setting('general.altitude_unit') !!} @endif
ROUTE  {!! $flight->route !!}
@endforeach