{{ t('contact') }}
@if (checkPermission('tenant.contact.create')) {{ t('new_contact_button') }} @endif @if (checkPermission('tenant.contact.bulk_import')) {{ t('import_contact') }} @endif
@if (isset($this->isUnlimited) && $this->isUnlimited) {{ t('unlimited') }} @elseif(isset($this->remainingLimit) && isset($this->totalLimit)) @endif
{{-- Use a stable key to avoid remounts on every render --}}
{{ t('cancel') }} {{ t('delete') }} {{ t('deleting') }}
{{-- View Contact Modal --}}

{{ $contact ? "#{$contact->id} - {$contact->firstname} {$contact->lastname}" : t('contact_details') }}

{{ t('name') }}

{{ $contact ? "{$contact->firstname} {$contact->lastname}" : '-' }}

{{ t('status') }}
{{ $contact->status->name ?? '-' }}
{{ t('source') }}

{{ $contact->source->name ?? '-' }}

{{ t('assigned') }}

{{ $contact && $contact->user ? "{$contact->user->firstname} {$contact->user->lastname}" : '-' }}

{{ t('company') }}

{{ isset($contact) && $contact->company ? $contact->company : '-' }}

{{ t('type') }}

{{ ucfirst($contact->type ?? '-') }}

{{ t('email') }}

{{ isset($contact) && $contact->email ? format_client_email($contact->email, $contact->id) : '-' }}

{{ t('phone') }}

@if ($contact->phone && can_show_client_phone($contact->id)) {{ format_client_phone($contact->phone, $contact->id) }} @else {{ $contact->phone ? format_client_phone($contact->phone, $contact->id) : '-' }} @endif

{{ t('website') }}

{{ isset($contact) && $contact->website ? $contact->website : '-' }}

@if ($customFields && $customFields->count() > 0)

{{ t('custom_fields') }}

@foreach ($customFields as $customFieldData) @php $field = $customFieldData['field']; $value = $customFieldData['display_value']; @endphp
{{ $field->field_label }}

@if ($field->field_type === 'checkbox') @if ($value) {{ t('yes') }} @else {{ t('no') }} @endif @elseif($field->field_type === 'date' && $value) {{ \Carbon\Carbon::parse($value)->format('M d, Y') }} @elseif($value) {{ $value }} @else - @endif

@endforeach
@endif
{{ t('city') }}

{{ isset($contact) && $contact->city ? $contact->city : '-' }}

{{ t('state') }}

{{ isset($contact) && $contact->state ? $contact->state : '-' }}

{{ t('country') }}

{{ get_country_name($contact->country_id) ? get_country_name($contact->country_id) : '-' }}

{{ t('zip_code') }}

{{ isset($contact) && $contact->zip ? $contact->zip : '-' }}

{{ t('description') }}

{{ isset($contact) && $contact->description ? $contact->description : '-' }}

{{ t('address') }}

{{ isset($contact) && $contact->address ? $contact->address : '-' }}

    @forelse($notes as $note)
  1. {{ \Carbon\Carbon::parse($note['created_at'])->diffForHumans(['options' => \Carbon\Carbon::JUST_NOW]) }}
    {{ $note['notes_description'] }}
  2. @empty

    {{ t('no_notes_available') }}

    @endforelse

{{ t('bulk_actions') }}

@foreach ($this->statuses as $status) @endforeach
@foreach ($this->sources as $source) @endforeach
{{ t('assign_to_groups') }}
{{ t('no_more_groups_to_select') }}
@foreach ($this->assignees as $assignee) @endforeach
{{ t('cancel') }} {{ t('save') }}