@extends('layouts.app') @section('title', 'User') @section('content')

@if( Auth::user()->id == $user->id ) My Profile @else {{ $user->details->full_name }} {{ $user->details->nickname ? '('.$user->details->nickname.')' : '' }} Profile @endif

@csrf
@if ($user->details->attachment_url) {{ $user->getName() }} @else @endif

{{ __('Personal Info') }}

{{--@if ($user->details->health_cert_url)
@if (substr($user->details->health_cert_url, -3) == 'pdf') @else
{{ $user->details->health_cert_url }}
@endif
@else @if (Auth::user()->id == $user->id)
@csrf
@error('compress_image') {{ $message }} @enderror
@endif @endif--}}

{{ __('Employment Info') }}

@if( Auth::user()->allowToManageUsers() ) @endif

{{ __('Superiors Info') }}

@if( Auth::user()->allowToManageUsers() ) @endif
@if( $user_superiors->count() > 0 ) @foreach ($user_superiors as $index => $user_superior)
@endforeach @else

- N/A -

@endif
@if( $user_subordinates->count() > 0 )

{{ __('Subordinates Info') }}

@foreach ($user_subordinates as $index => $user_subordinate) @if( $user_subordinate->user && $user->id != $user_subordinate->user->id )
@endif @endforeach
@endif
@if( $families->count() > 0 )
@foreach ($families as $index => $family) @endforeach
No Name Relationship Contact No. Address
{{ $index + 1 }} {{ $family->full_name }} {{ $family->relationship }} {{ $family->contact }} {{ $family->address_line }},{{ $family->postcode }},{{ $family->city }},{{ $family->state }}, {{ $family->country }}.
@else

- N/A -

@endif
@if( Auth::user()->allowToManageUsers() ) Back @endif @if(!(Auth::user()->allowToManageUsers())) Back @endif
@endsection @push('js') @endpush