@extends('app') @section('title', trans('frontend.global.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('frontend.profile.yourprofile')

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