@extends('app') @section('title', trans_choice('frontend.global.pirep', 1).' '.$pirep->ident) @section('content')
@if($pirep->state === PirepState::IN_PROGRESS) @else @lang('frontend.pireps.arrived') {{$pirep->created_at->diffForHumans()}} @endif
{{ $pirep->dpt_airport->full_name }} ({{ $pirep->dpt_airport_id }})
@if($pirep->block_off_time)
{{ $pirep->block_off_time->toDayDateTimeString() }}
@endif
{{ $pirep->arr_airport->full_name }} ({{ $pirep->arr_airport_id }})
@if($pirep->block_on_time)
{{ $pirep->block_on_time->toDayDateTimeString() }}
@endif
@lang('frontend.global.status') |
{{ PirepStatus::label($pirep->status) }}
|
@lang('frontend.pireps.source') | {{ PirepSource::label($pirep->source) }} |
@lang('frontend.pireps.flighttype') | {{ \App\Models\Enums\FlightType::label($pirep->flight_type) }} |
@lang('frontend.pireps.filedroute') | {{ $pirep->route }} |
{{ trans_choice('frontend.global.note', 2) }} | {{ $pirep->notes }} |
@lang('frontend.pireps.filedon') | {{ show_datetime($pirep->created_at) }} |
@lang('frontend.global.name') | @lang('frontend.global.value') | @foreach($pirep->fields as $field)
---|---|
{{ $field->name }} | {{ $field->value }} |
@lang('frontend.pireps.class') | @lang('frontend.pireps.count') | @foreach($pirep->fares as $fare)
---|---|
{{ $fare->fare->name }} ({{ $fare->fare->code }}) | {{ $fare->count }} |
{{ show_datetime($log->created_at) }} | {{ $log->log }} |