user(); return [ 'user' => $user, 'isIndividual' => $user->user_type === UserType::Individual, ]; } public function logout(): void { auth()->logout(); session()->invalidate(); session()->regenerateToken(); $this->redirect(route('login')); } }; ?>
{{ __('client.my_profile') }} {{-- Account Type Badge --}}
@if ($isIndividual) {{ __('profile.individual_account') }} @else {{ __('profile.company_account') }} @endif
{{-- Profile Information Card --}}
@if ($isIndividual)
{{ __('profile.full_name') }}
{{ $user->full_name }}
{{ __('profile.national_id') }}
{{ $user->national_id }}
{{ __('profile.email') }}
{{ $user->email }}
{{ __('profile.phone') }}
{{ $user->phone }}
{{ __('profile.preferred_language') }}
{{ $user->preferred_language === 'ar' ? __('profile.arabic') : __('profile.english') }}
{{ __('profile.member_since') }}
{{ $user->created_at->translatedFormat(app()->getLocale() === 'ar' ? 'j F Y' : 'F j, Y') }}
@else
{{ __('profile.company_name') }}
{{ $user->company_name }}
{{ __('profile.registration_number') }}
{{ $user->company_cert_number }}
{{ __('profile.contact_person') }}
{{ $user->contact_person_name }}
{{ __('profile.contact_person_id') }}
{{ $user->contact_person_id }}
{{ __('profile.email') }}
{{ $user->email }}
{{ __('profile.phone') }}
{{ $user->phone }}
{{ __('profile.preferred_language') }}
{{ $user->preferred_language === 'ar' ? __('profile.arabic') : __('profile.english') }}
{{ __('profile.member_since') }}
{{ $user->created_at->translatedFormat(app()->getLocale() === 'ar' ? 'j F Y' : 'F j, Y') }}
@endif
{{-- Contact Admin Message --}} {{ __('client.contact_admin_to_update') }} {{-- Logout Button --}}
{{ __('auth.logout') }}