@extends('app') @section('title', __('common.dashboard')) @section('content')
@if(Auth::user()->state === \App\Models\Enums\UserState::ON_LEAVE)
@endif {{-- TOP BAR WITH BOXES --}}

{{ $user->flights }}

{{ trans_choice('common.flight', $user->flights) }}

@minutestotime($user->flight_time)

@lang('dashboard.totalhours')
{{--110px font-size--}}

{{ optional($user->journal)->balance ?? 0 }}

@lang('dashboard.yourbalance')

{{ $current_airport }}

@lang('airports.current')
@if($last_pirep === null)
@lang('dashboard.noreportsyet') @lang('dashboard.fileonenow')
@else @include('dashboard.pirep_card', ['pirep' => $last_pirep]) @endif
{{ Widget::latestNews(['count' => 1]) }}
{{-- Sidebar --}}
{{ Widget::Weather(['icao' => $current_airport]) }}
{{ Widget::latestPireps(['count' => 5]) }}
{{ Widget::latestPilots(['count' => 5]) }}
@endsection