@php use App\Support\DocumentBrand; $settings = $businessSettings ?? []; ['brand' => $brand, 'brandDark' => $brandDark] = DocumentBrand::colors($settings); $logoPath = DocumentBrand::logoPath($settings['business_logo'] ?? null); $currency = $submission->currency ?: 'BDT'; $fee = (float) $submission->fee_amount; $setup = $submission->visaSetup; $title = $setup?->title ?: trim(($setup?->country_name ?? '').' '.($setup?->visa_type ?? '')) ?: 'Visa application'; @endphp Receipt {{ $submission->reference_no }} @include('documents._styles', ['brand' => $brand, 'brandDark' => $brandDark])
 
@if ($logoPath) @endif @if (!empty($settings['business_name']))

{{ $settings['business_name'] }}

@endif @if (!empty($settings['business_address']))

{{ $settings['business_address'] }}

@endif @if (!empty($settings['business_phone']))

{{ $settings['business_phone'] }}

@endif @if (!empty($settings['business_email']))

{{ $settings['business_email'] }}

@endif

RECEIPT

{{ $submission->reference_no }}

PAID

RECEIVED FROM

{{ $submission->full_name }}

@if ($submission->email)

{{ $submission->email }}

@endif @if ($submission->phone)

{{ $submission->phone }}

@endif @if ($submission->passport_number)

Passport {{ $submission->passport_number }}

@endif
@if ($setup?->country_name) @endif @if ($submission->travel_date) @endif
Reference {{ $submission->reference_no }}
Paid on {{ optional($submission->paid_at)->format('d M Y') ?: now()->format('d M Y') }}
Destination {{ $setup->country_name }}
Intended travel {{ $submission->travel_date->format('d M Y') }}
Documents {{ $submission->documents->count() }} uploaded
{{-- One fee, one line. The amount is the one actually taken from the submission, not the requirement's current fee, so a fee edited after payment cannot make the receipt disagree with the charge. --}}
DESCRIPTION AMOUNT

Visa fee

{{ $title }}

{{ DocumentBrand::money($fee, $currency) }}
Payment received in full. Your documents are with our visa team and your application is being processed.
TOTAL PAID {{ DocumentBrand::money($fee, $currency) }}
@if ($submission->documents->isNotEmpty())

DOCUMENTS RECEIVED

@foreach ($submission->documents as $doc) @endforeach
{{ $doc->document_name }}
@endif
{{ $settings['business_name'] ?? 'Thank you' }} @if (!empty($settings['business_email'])) · {{ $settings['business_email'] }} @endif @if (!empty($settings['business_phone'])) · {{ $settings['business_phone'] }} @endif
This receipt was generated electronically and is valid without a signature. Please quote {{ $submission->reference_no }} in any correspondence. A visa fee is payment for processing your application and does not guarantee that a visa will be granted.