{{-- Company Header --}}
@if (!empty($data['company']?->company_logo)) Logo @endif
@if (!empty($data['company']?->company_name))

{{ $data['company']->company_name }}

@endif @if (!empty($data['company']?->subject))

{{ $data['company']->subject }}

@endif

Dear Admin,

You have received a new inquiry. Below are the details submitted by the customer:

Inquiry Details:

@if (!empty($data['email_address'])) @endif
Company Name {{ $data['company_name'] ?? '—' }}
Contact Person {{ $data['contact_person'] ?? '—' }}
Mobile Number {{ $data['mobile_number'] ?? '—' }}
Email Address {{ $data['email_address'] }}

Product Inquiry:

{{ $data['product_inquiry'] }}
{{-- From / Sent / To / Subject -- matches screenshot layout --}}

From: {{ $data['contact_person'] ?? 'Customer' }}

Sent: {{ $data['sent_at'] }}

To: {{ $data['admin_email'] }}

Subject: {{ $data['company']?->company_name ?? '' }} Inquiry Form

{{-- Attachments list --}} @if (!empty($data['attachments']))

{{ count($data['attachments']) }} Attachment{{ count($data['attachments']) > 1 ? 's' : '' }}

@foreach ($data['attachments'] as $attachment) 📎 {{ $attachment['title'] }} @endforeach
@endif