{{--@each('pireps.pirep_card', $pireps, 'pirep')--}}
{{ trans_choice('common.flight', 1) }} | @lang('common.departure') | @lang('common.arrival') | @lang('common.aircraft') | @lang('flights.flighttime') | @lang('common.status') | @lang('pireps.submitted') | |
---|---|---|---|---|---|---|---|
{{ $pirep->airline->code }}{{ $pirep->ident }} | @if($pirep->dpt_airport){{ $pirep->dpt_airport->name }}@endif ({{$pirep->dpt_airport_id}}) | @if($pirep->arr_airport){{ $pirep->arr_airport->name }}@endif ({{$pirep->arr_airport_id}}) | @if($pirep->aircraft) {{ $pirep->aircraft->name }} @else - @endif | {{ (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 |