@foreach($pireps as $pirep)
{!! $pirep->airline->code !!} @if($pirep->flight_id) {!! $pirep->flight->flight_number !!} @else {!! $pirep->flight_number !!} @endif
@if($pirep->status == config('enums.pirep_status.PENDING'))
Pending
@elseif($pirep->status == config('enums.pirep_status.ACCEPTED'))
Accepted
@else
Rejected
@endif
DEP  {!! $pirep->dpt_airport->icao !!}  ARR  {!! $pirep->arr_airport->icao !!} 
Flight Time  {!! Utils::secondsToTime($pirep->flight_time) !!}
Aircraft  {!! $pirep->aircraft->registration !!} ({!! $pirep->aircraft->name !!})
Flight Level  {!! $pirep->level !!}
File Date  {!! $pirep->created_at !!}
more data 
more data 
@endforeach {{-- @foreach($pireps as $pirep) @if($pirep->notes) @endif @endforeach
Pilot Flight Aircraft Flight Time Level
{!! $pirep->user->name !!} @if($pirep->flight) {!! $pirep->flight->airline->code !!}{!! $pirep->flight->flight_number !!} @else - @endif {!! $pirep->aircraft->registration !!} ({!! $pirep->aircraft->name !!}) {!! Utils::secondsToTime($pirep->flight_time) !!} {!! $pirep->level !!} {!! Form::open(['route' => ['admin.pireps.destroy', $pirep->id], 'method' => 'delete']) !!}
{!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
{!! Form::close() !!}
  Notes: {!! $pirep->notes !!}
--}}