{{-- 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 $readonly = (!empty($pirep) && $pirep->read_only) ? 'readonly' : null; $select2_readonly = isset($readonly) ? 'disabled' : null; @endphp
@if($readonly)
@component('components.info') @lang('pireps.fieldsreadonly') @endcomponent
@endif
@lang('pireps.flightinformations')
{{-- Airline, Flight Ident, Flight Type--}}
@lang('common.airline')
@lang('flights.flighttype')
{{-- Departure & Arrival Airports --}}
@lang('airports.departure') @if(!empty($pirep) && ($pirep->read_only || request()->has('flight_id'))) @else @endif
@lang('airports.arrival') @if(!empty($pirep) && ($pirep->read_only || request()->has('flight_id'))) @else @endif
{{-- Flight Times, Level, Distance, Fuel Figures --}}
@lang('flights.flighttime')
@lang('flights.level') ({{config('phpvms.internal_units.altitude')}})
@lang('common.distance') ({{ config('phpvms.internal_units.distance') }})
@lang('pireps.block_fuel') ({{ $units['fuel'] }})
@lang('pireps.fuel_used') ({{ $units['fuel'] }})
@lang('pireps.aircraftinformations')
@lang('common.aircraft') {{-- You probably don't want to change this ID if you want the fare select to work --}}
{{-- Fares, if any and loaded when an aircraft is selected --}}
@include('pireps.fares')
{{-- Route --}}
@lang('flights.route')
{{-- Notes / Remarks --}}
{{ trans_choice('common.remark', 2).' / '.trans_choice('common.note', 2) }}
{{-- Custom Pirep Fields --}} @if($pirep_fields && count($pirep_fields) > 0)
{{ trans_choice('common.field', 2) }}
@if(isset($pirep) && $pirep->fields) @each('pireps.custom_fields', $pirep->fields, 'field') @else @each('pireps.custom_fields', $pirep_fields, 'field') @endif
@endif
{{-- Validation Results --}} @if($errors->any()) @endif {{-- Form Actions --}}