@extends('app') @section('title', __('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)

{{ __('Your Profile') }}

{{ __('Email') }} {{ $user->email }}
{{ __('API Key') }}  ({{ __('don\'t share this!') }}) {{ $user->api_key }}
{{ __('Timezone') }} {{ $user->timezone }}
@endif @endsection