@extends('layouts.main_dashboard.app') @php $isArabic = app()->getLocale() === 'ar'; $userName = trim(collect([$user->first_name, $user->middle_name, $user->last_name])->filter()->implode(' ')); $userInitials = collect([$user->first_name, $user->last_name]) ->filter() ->map(fn ($value) => mb_substr($value, 0, 1)) ->implode(''); @endphp @section('title', $isArabic ? 'البيانات الشخصية' : 'Personal Information') @section('page_heading', $isArabic ? 'البيانات الشخصية' : 'Personal Information') @section('skip_page_hero', true) @section('breadcrumb') @endsection @section('content')

{{ $isArabic ? 'البيانات الشخصية' : 'Personal Information' }}

{{ $isArabic ? 'حدّث بياناتك الأساسية ولغة الحساب من نفس الصفحة. لغة الحساب هي نفسها لغة اللوحة.' : 'Update your basic details and preferred account language from one page. Your account language is the same as your dashboard language.' }}

@csrf @method('PUT')
@if ($user->avatar) {{ $userName }} @else
{{ $userInitials !== '' ? $userInitials : 'U' }}
@endif
{{ $userName ?: $user->email }}
{{ $user->email }}
@error('avatar')
{{ $message }}
@enderror
@error('first_name')
{{ $message }}
@enderror
@error('middle_name')
{{ $message }}
@enderror
@error('last_name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('locale')
{{ $message }}
@enderror
@error('current_password')
{{ $message }}
@enderror
{{ $isArabic ? 'عند تغيير اللغة المفضلة ستتغير لغة اللوحة مباشرة. وعند تغيير البريد الإلكتروني سيتم إرسال رسالة تحقق إلى العنوان الجديد.' : 'Changing the preferred language updates the dashboard immediately. Changing the email address sends a verification message to the new address.' }}
@endsection