{{--@each('pireps.pirep_card', $pireps, 'pirep')--}}
{{ trans_choice('common.flight', 1) }} | @lang('common.departure') | @lang('common.arrival') | @lang('common.aircraft') | @lang('common.flighttime') | @lang('common.status') | @lang('pireps.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) @lang('common.edit') @endif |