{{ __('Client Serial') }}: {{ $client_code ?? '-' }}

@if(empty($client_code)) @can('clients edit') @endcan @endif
@can('clients edit') @endcan
@if($confirmGenerateCode)

{{ __('Confirm') }}

{{ __('Do you want to generate client code now? This action cannot be undone.') }}

@endif @if (session()->has('message'))
{{ session('message') }}
@endif

{{ __('Basic Information') }}

{{--
{{ __('Company Name') }} ({{__("Arabic")}}) {{ is_array($company_name) ? ($company_name['ar'] ?? '-') : ($company_name ?? '-') }}
{{ __('Company Name') }} ({{__("English")}}) {{ is_array($company_name) ? ($company_name['en'] ?? '-') : ($company_name ?? '-') }}
--}}
{{ __('Client Name') }} ({{__("Arabic")}}) {{ $name['ar'] ?? '-' }}
{{ __('Client Name') }} ({{__("English")}}) {{ $name['en'] ?? '-' }}
{{ __('Status') }} {{ __(ucfirst($status)) }}

{{ __('Contact') }}

{{ __('Responsible Person') }} {{ $responsible_person ?? '-' }}
{{ __('Job Title') }} {{ $job_title ?? '-' }}
{{ __('Email') }} {{ $email ?? '-' }}
{{ __('Mobile') }} {{ $mobile ?? '-' }}
{{ __('Address') }} {{ $address ?? '-' }}

{{ __('Contact Persons') }}

@if($client->contacts()->exists())
@foreach($client->contacts()->get()->sortBy(fn ($contact) => mb_strtolower((string) $contact->name)) as $contact)
{{ $contact->name }}
{{ $contact->position ?: '-' }}
{{ __('Email') }}: {{ $contact->email ?: '-' }}
{{ __('Mobile') }}: {{ $contact->mobile ?: '-' }}
{{ __('Note') }}: {{ $contact->note ?: '-' }}
@endforeach
@else
{{ __('No additional contact persons added yet.') }}
@endif

{{ __('Contract') }}

{{ __('Start Date') }} {{ $contract_start_date ?: '-' }}
{{ __('End Date') }} {{ $contract_end_date ?: '-' }}
{{ __('Reminder Days') }} {{ $reminder_days_before_end ?: '-' }}

{{ __('Classification') }}

{{ __('Client Type') }}
{{ $client->clientType ? $client->clientType->getTranslation('name', app()->getLocale()) : '-' }}
{{ __('Importance') }}
{{ $client->importanceLevel ? $client->importanceLevel->getTranslation('name', app()->getLocale()) : '-' }}
{{ __('Activity') }}
{{ $client->activity ? $client->activity->getTranslation('name', app()->getLocale()) : '-' }}

{{ __('Relations') }}

{{ __('Project') }} {{ $client->project ? (is_array($client->project->name) ? ($client->project->name[app()->getLocale()] ?? $client->project->name['en'] ?? '-') : $client->project->name) : '-' }}
{{--
--}} {{-- {{ __('Manager') }}--}} {{-- {{ $client->manager ? $client->manager->name : '-' }}--}} {{--
--}}

{{ __('Image') }}

@if($client->photo) @else - @endif

{{ __('Notes') }}

{{ $notes ?: '-' }}