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

{{ $user->name }}

{{ $user->pilot_id }}
{{ $user->rank->name }}

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

@if($user->home_airport) @endif @if($user->current_airport) @endif
{{-- show the details/edit fields only for the currently logged in user --}} @if(Auth::check() && $user->id === Auth::user()->id)

@lang('profile.yourprofile')

@lang('common.email') {{ $user->email }}
@lang('profile.apikey')  (@lang('profile.dontshare')) {{ $user->api_key }}
@lang('common.timezone') {{ $user->timezone }}
@endif @endsection