@extends('app') @section('title', 'SimBrief Flight Planning') @include('theme_helpers') @php $units = isset($units) ? $units : DT_GetUnits(); $DBasic = isset($DBasic) ? $DBasic : check_module('DisposableBasic'); $Addon_Specs = ($DBasic && Theme::getSetting('simbrief_specs')) ? DB_GetSpecs($aircraft, true) : null; $Check_SSL = str_contains(url()->current(), 'https://'); // Get RVR and Remark Text from Theme Settings with some failsafe defaults, // Below variables are also used when DisposableTech module is installed and activated. $acdata = str_replace(['{', '}'], '', $acdata); $sb_rvr = filled(Theme::getSetting('simbrief_rvr')) ? 'RVR/'.Theme::getSetting('simbrief_rvr') : 'RVR/550'; $sb_callsign = filled(optional($flight->airline)->callsign) ? ' CS/'.strtoupper($flight->airline->callsign) : null; $sb_ivaova = filled(Theme::getSetting('gen_ivao_icao')) ? ' IVAOVA/'.strtoupper(Theme::getSetting('gen_ivao_icao')) : null; $sb_rmk = filled(Theme::getSetting('simbrief_rmk')) ? ' RMK/TCAS '.strtoupper(Theme::getSetting('simbrief_rmk')) : ' RMK/TCAS '.strtoupper(config('app.name')); @endphp @section('content')
@if(Theme::getSetting('simbrief_rfinder') && !$Check_SSL) @include('flights.simbrief_form_routefinder') @endif @endsection @include('flights.simbrief_scripts')