{{----}} @foreach($flights as $flight) {{----}} @endforeach
Flight # Dep ArrRouteDpt 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 }} @if($flight->active == 1) Active @else Inactive @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() }}