@extends('app')
@section('title', __('home.welcome.title'))
@if(Theme::getSetting('home_disable') && !Auth::check())
@endif
@include('theme_helpers')
@php
$DBasic = check_module('DisposableBasic');
@endphp
@section('content')
{{-- Top Row --}}
{{-- Latest Pilots --}}
@foreach($users as $user)
@if (isset($user->avatar))

@else
 }})
@endif
{{ optional($user->home_airport)->name }}
{{ $user->created_at->diffForHumans() }}
@endforeach
{{-- End Latest Pilots --}}
@if($DBasic)
@widget('DBasic::LeaderBoard', ['source' => 'pilot', 'period' => 'lastm', 'count' => 1, 'type' => 'flights'])
@widget('DBasic::LeaderBoard', ['source' => 'pilot', 'period' => 'lastm', 'count' => 1, 'type' => 'time'])
@widget('DBasic::LeaderBoard', ['source' => 'pilot', 'period' => 'lastm', 'count' => 1, 'type' => 'distance'])
@widget('DBasic::Stats', ['type' => 'home'])
@else
@endif
@widget('LatestAwards', ['count' => 4])
@endsection