@extends('app') @section('title', __('common.dashboard')) @section('content')
{{-- TOP BAR WITH BOXES --}}

{{ $user->flights }}

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

{{ \App\Facades\Utils::minutesToTimeString($user->flight_time, false)}}

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

{{ $user->journal->balance }}

@lang('dashboard.yourbalance')
@if($user->current_airport)

{{ $user->curr_airport_id }}

@else

{{ $user->home_airport_id }}

@endif
@lang('common.currentairport')
@if($last_pirep === null)
@lang('dashboard.noreportsyet') @lang('dashboard.fileonenow')
@else @include('pireps.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