@if(!empty($seller['logo_url'])) {{ $seller['name'] }} @endif
{{ $seller['name'] }}
@if($seller['address'])
{{ $seller['address'] }}
@endif @if($seller['email'])
{{ $seller['email'] }}
@endif @if($seller['phone'])
{{ $seller['phone'] }}
@endif @if($seller['tax_id'])
Tax ID: {{ $seller['tax_id'] }}
@endif @if($seller['vat'])
VAT: {{ $seller['vat'] }}
@endif
Invoice
Invoice # {{ $payment->invoice_number }}
Date {{ $payment->created_at?->format('M d, Y') }}
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['vat'])
VAT: {{ $seller['vat'] }}
@endif @if($seller['tax_id'])
Tax ID: {{ $seller['tax_id'] }}
@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['vat'])
VAT: {{ $buyer['vat'] }}
@endif @if($buyer['tax_id'])
Tax ID: {{ $buyer['tax_id'] }}
@endif
Description Amount
{{ $lines['description'] }} {{ $lines['subtotal_f'] }}
@if($lines['discount'] > 0) @endif @if($lines['tax_rate'] > 0) @endif
Subtotal {{ $lines['subtotal_f'] }}
Discount @if($payment->coupon_code)({{ $payment->coupon_code }})@endif - {{ $lines['discount_f'] }}
Tax ({{ rtrim(rtrim(number_format($lines['tax_rate'], 2), '0'), '.') }}%) {{ $lines['tax_f'] }}
Total {{ $lines['total_f'] }}
@if($seller['bank'])
Payment Details
{{ $seller['bank'] }}
@endif