@if ($user->image)
 }})
@else
{{ strtoupper(substr($user->name ?? 'N', 0, 1)) }}
@endif
{{ $user->name ?? 'N/A' }}
@php
$userTypeLabel = $user->type ? trans(app()->getLocale() . '.' . $user->type) : 'N/A';
@endphp
{{ $userTypeLabel }}
-
{{ trans(app()->getLocale() . '.name') }}
{{ $user->name ?? 'N/A' }}
-
{{ trans(app()->getLocale() . '.email') }}
{{ $user->email ?? 'N/A' }}
-
{{ trans(app()->getLocale() . '.phone') }}
{{ $user->normalized ?? ($user->country_code && $user->number ? $user->country_code . ' ' . $user->number : 'N/A') }}
-
{{ trans(app()->getLocale() . '.user_type') }}
@php
$userTypeLabel = $user->type ? trans(app()->getLocale() . '.' . $user->type) : 'N/A';
@endphp
{{ $userTypeLabel }}
@if($user->city)
-
{{ trans(app()->getLocale() . '.city') }}
@php
$locale = app()->getLocale();
$cityName = $user->city && is_array($user->city->name) ? ($user->city->name[$locale] ?? $user->city->name['en'] ?? $user->city->name['ar'] ?? 'N/A') : ($user->city->name ?? 'N/A');
@endphp
{{ $cityName }}
@endif
-
{{ trans(app()->getLocale() . '.verification_status') }}
{{ ucfirst(str_replace('_', ' ', trim($user->verification_status))) }}
@if($user->verificationFile)
-
{{ trans(app()->getLocale() . '.verification_file') }}
@endif
@if($user->bio)
-
{{ trans(app()->getLocale() . '.bio') }}
{{ $user->bio }}
@endif
-
{{ trans(app()->getLocale() . '.joined_at') }}
{{ $user->joined_at ? $user->joined_at : 'N/A' }}
-
{{ trans(app()->getLocale() . '.last_login') }}
{{ $user->last_login ? $user->last_login : 'N/A' }}
-
{{ trans(app()->getLocale() . '.created_at') }}
{{ $user->created_at }}
@if($user->companies && $user->companies->count() > 0)
@forelse($user->companies as $company)
@if ($company->logo_id && $company->logo)
 }})
@else
{{ strtoupper(substr($company->name ?? 'N', 0, 1)) }}
@endif
{{ $company->name ?? 'N/A' }}
@php
$locale = app()->getLocale();
$categoryName = $company->category && is_array($company->category->name) ? ($company->category->name[$locale] ?? $company->category->name['en'] ?? $company->category->name['ar'] ?? 'N/A') : ($company->category ? $company->category->name : 'N/A');
@endphp
{{ $categoryName }}
{{ trans(app()->getLocale() . '.view_details') }}
@empty
{{ trans(app()->getLocale() . '.no_companies_found') }}
@endforelse
@endif
@if($user->accountHistory->count() > 0)
@foreach($user->accountHistory as $history)
@php
$timeAgo = $history->created_at->diffForHumans();
$dateFormatted = $history->created_at->format('jS M, Y');
@endphp
-
{{ $dateFormatted }}
{{ $timeAgo }}
{{ trans(app()->getLocale() . '.account_type_changed') }}: {{ trans(app()->getLocale() . '.' . $history->from_type) }} → {{ trans(app()->getLocale() . '.' . $history->to_type) }}
{{ trans(app()->getLocale() . '.changed_on') }}: {{ $history->created_at->format('M d, Y h:i A') }}
@endforeach
@else
{{ trans(app()->getLocale() . '.no_account_type_change_history') }}
@endif