@extends('app') @section('title', __('common.profile')) @section('content')
@if ($user->avatar == null) @else @endif

{{ $user->name_private }}

{{ $user->ident }} @if (filled($user->callsign)) {{ ' | ' . $user->callsign }}  @endif

{{ $user->airline->name }}

@if (!empty($user->rank->image_url)) @endif

{{ $user->rank->name }}
@if ($user->home_airport) @lang('airports.home'): {{ $user->home_airport->icao }} @endif

@if (Auth::check() && $user->id === Auth::user()->id) @endif

{{ $user->flights }}

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

@if ($user->current_airport)
@endif @if (setting('pilots.allow_transfer_hours') === true)
@endif
{{-- Show the user's award if they have any --}} @if ($user->awards)

@lang('profile.your-awards')

@foreach ($user->awards->chunk(3) as $awards)
@foreach ($awards as $award)

{{ $award->name }}

@if ($award->image_url) {{ $award->description }} @endif
{{ $award->description }}
@endforeach
@endforeach
@endif @endsection