@foreach($flights as $flight) @endforeach
Flight # Dep Arr Route Dpt Time Arr Time Notes Active Action
{!! $flight->airline->code !!}{!! $flight->flight_number !!} @if($flight->route_code) (C: {!! $flight->route_code !!} L: {!! $flight->route_leg !!}) @endif {!! $flight->dpt_airport->icao !!} {!! $flight->arr_airport->icao !!} @if($flight->alt_airport) (Alt: {!! $flight->alt_airport->icao !!}) @endif {!! $flight->route !!} {!! $flight->dpt_time !!} {!! $flight->arr_time !!} {!! $flight->notes !!} {!! Form::open(['route' => ['admin.flights.destroy', $flight->id], 'method' => 'delete']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!} {!! Form::close() !!}