{{-- Standalone page loaded inside an iframe modal. We pull the same theme tokens + body font as the rest of the app so the preview feels native (not a generic PDF viewer). --}} {!! \App\Helpers\FontHelper::renderHead() !!} {!! \App\Helpers\ThemeHelper::renderCss() !!} {{-- Top action bar — Download PDF + Print + Close. Hidden on print so it doesn't bleed into the printed page. --}}
Download PDF
@if(!empty($seller['logo_url'])) @else
{{ strtoupper(substr($seller['name'] ?: 'M', 0, 1)) }}
@endif
{{ $seller['name'] }}
@if($seller['website'])
{{ $seller['website'] }}
@endif
Invoice
{{ $payment->invoice_number ?: '#' . $payment->id }}
Issue Date
{{ $payment->created_at?->format('M d, Y') }}
Payment Method
{{ ucfirst($payment->gateway_slug ?: 'Manual') }}
Status
@switch($payment->status) @case('succeeded') Paid @break @case('pending') Pending @break @default {{ ucfirst($payment->status) }} @endswitch
From
{{ $seller['name'] }}
@if($seller['address'])
{{ $seller['address'] }}
@endif @if($seller['email'])
{{ $seller['email'] }}
@endif @if($seller['phone'])
{{ $seller['phone'] }}
@endif @if($seller['tax_id'] || $seller['vat'])
@if($seller['tax_id'])Tax ID: {{ $seller['tax_id'] }}@endif @if($seller['tax_id'] && $seller['vat'])  ·  @endif @if($seller['vat'])VAT: {{ $seller['vat'] }}@endif
@endif
Bill To
{{ $buyer['company'] ?: ($buyer['name'] ?: $buyer['email']) }}
@if($buyer['name'] && $buyer['company'])
{{ $buyer['name'] }}
@endif @if($buyer['address'])
{{ $buyer['address'] }}
@endif @if($buyer['email'])
{{ $buyer['email'] }}
@endif @if($buyer['tax_id'] || $buyer['vat'])
@if($buyer['tax_id'])Tax ID: {{ $buyer['tax_id'] }}@endif @if($buyer['tax_id'] && $buyer['vat'])  ·  @endif @if($buyer['vat'])VAT: {{ $buyer['vat'] }}@endif
@endif
Description Amount
{{ $lines['description'] }} {{ $lines['subtotal_f'] }}
Subtotal {{ $lines['subtotal_f'] }}
@if($lines['discount'] > 0)
Discount @if($payment->coupon_code)({{ $payment->coupon_code }})@endif − {{ $lines['discount_f'] }}
@endif @if($lines['tax_rate'] > 0)
{{ \App\Models\SystemSetting::get('tax_label', 'Tax') }} ({{ rtrim(rtrim(number_format($lines['tax_rate'], 2), '0'), '.') }}%) {{ $lines['tax_f'] }}
@endif
Total {{ $lines['total_f'] }}
@if($seller['bank']) @endif