{{-- --}} @foreach($flights as $flight) {{-- --}} @endforeach
Airline@sortablelink('flight_number', 'Flight #') @sortablelink('callsign', 'Callsign') @sortablelink('dep_airport_id', 'Orig') @sortablelink('arr_airport_id', 'Dest') @sortablelink('alt_airport_id', 'Altn') @sortablelink('dpt_time', 'Dpt Time') @sortablelink('arr_time', 'Arr Time') @sortablelink('subfleets_count', 'Subfleets') @sortablelink('route', 'Route') @sortablelink('notes', 'Notes') @sortablelink('distance', 'Distance') @sortablelink('flight_time', 'Duration') @sortablelink('flight_type', 'Type') @sortablelink('active', 'Active') @sortablelink('visible', 'Visible') Actions
{{ optional($flight->airline)->name }}{{$flight->ident}} {{ $flight->callsign }} {{ $flight->dpt_airport_id }} {{ $flight->arr_airport_id }} {{ $flight->alt_airport_id }} {{ $flight->dpt_time }} {{ $flight->arr_time }} @if($flight->subfleets_count > 0) {{ $flight->subfleets_count }} @else - @endif @if(filled($flight->route)) @endif @if(filled($flight->notes)) @endif {{ round($flight->distance->local()).' '.setting('units.distance') }} @minutestotime($flight->flight_time) {{ $flight->flight_type }} @if($flight->active == 1) @lang('common.active') @else @lang('common.inactive') @endif @if($flight->visible == 1) @else @endif {{ Form::open(['route' => ['admin.flights.destroy', $flight->id], 'method' => 'delete']) }} {{ Form::button('', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon', 'onclick' => "return confirm('Are you sure?')"]) }} {{ Form::close() }}