{{--@each('pireps.pirep_card', $pireps, 'pirep')--}} @foreach($pireps as $pirep) @endforeach
Flight Departure Arrival Aircraft Flight Time Status Submitted
{{ $pirep->airline->code }}{{ $pirep->ident }} {{ $pirep->dpt_airport->name }} ({{$pirep->dpt_airport->icao}}) {{ $pirep->arr_airport->name }} ({{$pirep->arr_airport->icao}}) {{ $pirep->aircraft->name }} {{ (new \App\Support\Units\Time($pirep->flight_time)) }} @if($pirep->state === PirepState::PENDING)
@elseif($pirep->state === PirepState::ACCEPTED)
@elseif($pirep->state === PirepState::REJECTED)
@else
@endif {{ PirepState::label($pirep->state) }}
@if(filled($pirep->submitted_at)) {{ $pirep->submitted_at->diffForHumans() }} @endif @if(!$pirep->read_only) edit @endif