{{-- NOTE ABOUT THIS VIEW The fields that are marked "read-only", make sure the read-only status doesn't change! If you make those fields editable, after they're in a read-only state, it can have an impact on your stats and financials, and will require a recalculation of all the flight reports that have been filed. You've been warned! --}} @php $custom_fields_exist = (isset($pirep) && $pirep->fields && $pirep->fields->isNotEmpty()) || (!isset($pirep) && $pirep_fields && $pirep_fields->isNotEmpty()); $form_width = $custom_fields_exist ? 'col-lg-8' : 'col-lg-12'; @endphp @if(!empty($pirep) && $pirep->read_only)
{{ $pirep->airline->name }}
@else{{ $errors->first('airline_id') }}
@endif{{ $pirep->ident }}
@else{{ $errors->first('flight_number') }}
{{ $errors->first('route_code') }}
{{ $errors->first('route_leg') }}
@endif{{ $flight_type_id }} ({{ \App\Models\Enums\FlightType::label($pirep->flight_type) }})
@else{{ $errors->first('flight_type') }}
@endif{{ $pirep->hours.' '.trans_choice('common.hour', $pirep->hours) }} , {{ $pirep->minutes.' '.trans_choice('common.minute', $pirep->minutes) }}
@else{{ $errors->first('hours') }}
{{ $errors->first('minutes') }}
@endif{{ $pirep->level }}
@else{{ $errors->first('level') }}
@endif{{ $errors->first('dpt_airport_id') }}
@endif{{ $errors->first('arr_airport_id') }}
@endif{{ $pirep->aircraft->name }}
@else{{ $errors->first('aircraft_id') }}
@endif{{ $pirep->block_fuel }}
@else{{ $errors->first('block_fuel') }}
@endif{{ $pirep->fuel_used }}
@else{{ $errors->first('fuel_used') }}
@endif{{ $errors->first('route') }}
{{ $errors->first('notes') }}