@foreach($pireps as $pirep) @endforeach
{{ 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) {{ optional($pirep->aircraft)->name }} @else - @endif @minutestotime($pirep->flight_time) @php $color = 'badge-info'; if($pirep->state === PirepState::PENDING) { $color = 'badge-warning'; } elseif ($pirep->state === PirepState::ACCEPTED) { $color = 'badge-success'; } elseif ($pirep->state === PirepState::REJECTED) { $color = 'badge-danger'; } @endphp
{{ PirepState::label($pirep->state) }}
@if(filled($pirep->submitted_at)) {{ $pirep->submitted_at->diffForHumans() }} @endif @if(!$pirep->read_only) @lang('common.edit') @endif