@php $isInternal = $audience === 'internal'; $isCareer = ($payload['channel'] ?? '') === 'career'; $isFranchise = ($payload['channel'] ?? '') === 'franchise'; $isFleet = ($payload['channel'] ?? '') === 'fleet'; $isApplication = $isCareer || $isFranchise || $isFleet; $label = $payload['channel_label'] ?? 'Request'; $name = $payload['contact_name'] ?? 'there'; $ref = $payload['reference'] ?? ''; $submitted = $payload['submitted_at'] ?? ''; $rows = $payload['rows'] ?? []; $adminUrl = $payload['admin_url'] ?? null; $siteUrl = rtrim(config('app.url'), '/'); @endphp
@if ($isInternal) New {{ $label }} {{ $ref }} @elseif ($isCareer) We’ve received your job application {{ $ref }} @elseif ($isFranchise) We’ve received your franchise application {{ $ref }} @elseif ($isFleet) We’ve received your fleet join request {{ $ref }} @else We’ve received your {{ $label }} request {{ $ref }} @endif
@unless ($isInternal) @endunless
 

{{ $isInternal ? 'Internal notification' : 'Xpert Logistics' }}

@if ($isInternal) @if ($isCareer) New job application @elseif ($isFranchise) New franchise application @else New {{ $label }} lead @endif @else {{ $isApplication ? 'Application received' : 'Request received' }} @endif

{{ $label }}

{{ \App\Support\Company::TAGLINE }} · {{ \App\Support\Company::HQ_CITY }}

@if ($isInternal)

A new {{ $label }} was submitted on the website. The {{ $isApplication ? 'applicant' : 'customer' }} also received a thank-you confirmation. @if ($isCareer) The resume is attached to this email when available. @endif

@elseif ($isCareer)

Hi {{ $name }},

Thank you for applying to {{ \App\Support\Company::NAME }}. We’ve received your application and our people desk will review it shortly.

@elseif ($isFranchise)

Hi {{ $name }},

Thank you for your interest in partnering with {{ \App\Support\Company::NAME }}. We’ve received your franchise application and our partnership desk will review it shortly.

@elseif ($isFleet)

Hi {{ $name }},

Thank you for wanting to join the {{ \App\Support\Company::NAME }} network. We’ve received your fleet / vendor request and our fleet desk will review it shortly.

@else

Hi {{ $name }},

Thank you for contacting {{ \App\Support\Company::NAME }}. We’ve received your {{ $label }} request and our desk will review it shortly.

@endif

Reference

{{ $ref }}

{{ $isInternal ? 'Status' : 'Submitted' }}

{{ $isInternal ? 'NEW' : $submitted }}

{{ $isInternal ? ($isApplication ? 'Application details' : 'Lead details') : ($isApplication ? 'Your application' : 'Your submission') }}

@foreach ($rows as $i => $row) @endforeach
{{ $row['label'] }} {{ $row['value'] }}
@if ($isInternal && $adminUrl) Open in Admin → @if ($isCareer) Job requests @elseif ($isFranchise) Franchise requests @elseif ($isFleet) Fleet join requests @else Leads @endif @elseif ($isCareer) View careers    Contact desk @elseif ($isFranchise) View franchise    Contact desk @elseif ($isFleet) Join our fleet    Contact desk @else Track a shipment    Contact desk @endif

For urgent plant windows, call {{ \App\Support\Company::PHONE }} or write to {{ \App\Support\Company::EMAIL_INFO }}.

{{ \App\Support\Company::NAME }}

{{ \App\Support\Company::HQ_ADDRESS }}
{{ \App\Support\Company::EMAIL_INFO }}

{{ $isInternal ? 'Automated lead alert from the website forms.' : 'This is an automated confirmation. Please do not reply with confidential documents on unsecured channels.' }}