@extends('app') @section('title', __('common.dashboard')) @include('theme_helpers') @php $DBasic = isset($DBasic) ? $DBasic : check_module('DisposableBasic'); $DSpecial = isset($DSpecial) ? $DSpecial : check_module('DisposableSpecial'); $units = isset($units) ? $units : DT_GetUnits(); @endphp @section('content') {{-- User State Warning --}} @if($user->state === \App\Models\Enums\UserState::ON_LEAVE)
@endif {{-- Full row with more icons --}} @if($DBasic) @include('dashboard.icons') @endif
{{-- Main Dashboard : LEFT --}}
{{-- Only 4 icons with core data --}} @if(!$DBasic) @include('dashboard.icons') @endif @if(Theme::getSetting('dash_livemap')) @widget('liveMap', ['table' => false, 'height' => '500px']) @elseif($DBasic) @widget('DBasic::FlightBoard') @endif @if($last_pirep !== null) @include('dashboard.pirep_card', ['pirep' => $last_pirep]) @endif @widget('latestNews', ['count' => 3]) {{-- Jumpseat Traver and Aircraft Transfer Widgets--}} @if($DBasic)
@widget('DBasic::JumpSeat')
@widget('DBasic::TransferAircraft')
@endif {{-- Current Month Leaderboard Widgets--}} @if($DBasic)
@widget('DBasic::LeaderBoard', ['source' => 'pilot', 'period' => 'currentm', 'count' => 5, 'type' => 'flights'])
@widget('DBasic::LeaderBoard', ['source' => 'pilot', 'period' => 'currentm', 'count' => 5, 'type' => 'time'])
@widget('DBasic::LeaderBoard', ['source' => 'pilot', 'period' => 'currentm', 'count' => 5, 'type' => 'lrate'])
@endif
{{-- Main Dashboard : RIGHT --}}
@if(Theme::getSetting('dash_embed_wx') && $current_airport) @elseif($current_airport) @widget('Weather', ['icao' => $current_airport]) @endif {{-- Two Map side by side positioning --}}
@if($DBasic && Theme::getSetting('gen_map_flight')) @widget('DBasic::Map', ['source' => $current_airport]) @endif
@if($DBasic && Theme::getSetting('gen_map_fleet')) @widget('DBasic::Map', ['source' => 'fleet']) @endif
@if($DSpecial) @widget('DSpecial::Assignments') @widget('DSpecial::TourProgress') @endif @if($DBasic) @widget('DBasic::ActiveBookings', ['source' => 'simbrief']) @if(Theme::getSetting('dash_whazzup_ivao')) @asyncWidget('DBasic::WhazzUp', ['network' => 'IVAO']) @endif @if(Theme::getSetting('dash_whazzup_vatsim')) @asyncWidget('DBasic::WhazzUp', ['network' => 'VATSIM']) @endif @widget('DBasic::RandomFlights') @widget('DBasic::AirportInfo') @widget('DBasic::Discord') @endif @if(!$DBasic) @widget('latestPireps', ['count' => 5]) @widget('latestPilots', ['count' => 5]) @endif
@endsection