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

{{ $user->name }}

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

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

@if($user->home_airport) @endif @if($user->current_airport) @endif @if(setting('pilots.allow_transfer_hours') === true) @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 }}
@lang('profile.opt-in') {{ $user->opt_in ? __('common.yes') : __('common.no') }}
@endif @endsection