@extends('app') @section('title', 'PIREP '.$pirep->ident) @section('content')
@if($pirep->state === PirepState::IN_PROGRESS) @else 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
Status |
@php
if($pirep->state === PirepState::PENDING)
$badge = 'warning';
elseif ($pirep->state === PirepState::ACCEPTED)
$badge = 'success';
elseif ($pirep->state === PirepState::REJECTED)
$badge = 'danger';
else
$badge = 'info';
@endphp
{{ PirepState::label($pirep->state) }}
|
State |
{{ PirepStatus::label($pirep->status) }}
|
Source | {{ PirepSource::label($pirep->source) }} |
Departure/Arrival | --}} {{----}} {{--{{ $pirep->dpt_airport->name }}--}} {{--({{$pirep->dpt_airport->icao}})--}} {{--to--}} {{--{{ $pirep->arr_airport->name }}--}} {{--({{$pirep->arr_airport->icao}})--}} {{-- | --}} {{--
Flight Type | {{ \App\Models\Enums\FlightType::label($pirep->flight_type) }} |
Filed Route | {{ $pirep->route }} |
Notes | {{ $pirep->notes }} |
Filed On | {{ show_datetime($pirep->created_at) }} |
Name | Value | @foreach($pirep->fields as $field)
---|---|
{{ $field->name }} | {{ $field->value }} |
Class | Count | @foreach($pirep->fares as $fare)
---|---|
{{ $fare->fare->name }} ({{ $fare->fare->code }}) | {{ $fare->count }} |
{{ show_datetime($log->created_at) }} | {{ $log->log }} |