{{-- Expects: $invoice, $currency, $issueDate, $dueDate, $daysUntilDue, $paymentMethod, $selectedBankAccount, $paymentUrl --}} @php $thBg = $thBg ?? '#137fec'; $thText = $thText ?? '#ffffff'; $thBorderBottom = $thBorderBottom ?? '#0d5aa7'; $accent = $accent ?? '#137fec'; $paymentBg = $paymentBg ?? '#eff6ff'; $paymentBorder = $paymentBorder ?? '#bfdbfe'; $paymentTitle = $paymentTitle ?? '#1d4ed8'; $paymentText = $paymentText ?? '#1e3a8a'; @endphp @forelse($invoice->items ?? [] as $item) @php $lineTotal = $item->total ?? (($item->quantity * $item->unit_price) * (1 + ((float) ($item->tax_rate ?? 0)) / 100)); @endphp @empty @endforelse
Description Qty Unit Tax Total
{{ $item->description }}@if(!empty($item->notes)) — {{ $item->notes }}@endif {{ number_format((float) $item->quantity, 2) }} {{ $currency }} {{ number_format((float) $item->unit_price, 2) }} {{ number_format((float) ($item->tax_rate ?? 0), 2) }}% {{ $currency }} {{ number_format((float) $lineTotal, 2) }}
No items
@if(($totalsStyle ?? '') === 'bluebox') @if((float) ($invoice->tax_amount ?? 0) > 0) @endif @if((float) ($invoice->discount_amount ?? 0) > 0) @endif @if((float) ($invoice->paid_amount ?? 0) > 0) @endif
Subtotal {{ $currency }} {{ number_format((float) ($invoice->subtotal ?? 0), 2) }}
Tax {{ $currency }} {{ number_format((float) ($invoice->tax_amount ?? 0), 2) }}
Discount -{{ $currency }} {{ number_format((float) ($invoice->discount_amount ?? 0), 2) }}
Total due {{ $currency }} {{ number_format((float) ($invoice->total ?? 0), 2) }}
Paid {{ $currency }} {{ number_format((float) ($invoice->paid_amount ?? 0), 2) }}
Balance due {{ $currency }} {{ number_format((float) ($invoice->balance ?? 0), 2) }}
@else @if((float) ($invoice->tax_amount ?? 0) > 0) @endif @if((float) ($invoice->discount_amount ?? 0) > 0) @endif @if((float) ($invoice->paid_amount ?? 0) > 0) @endif
Subtotal {{ $currency }} {{ number_format((float) ($invoice->subtotal ?? 0), 2) }}
Tax {{ $currency }} {{ number_format((float) ($invoice->tax_amount ?? 0), 2) }}
Discount -{{ $currency }} {{ number_format((float) ($invoice->discount_amount ?? 0), 2) }}
Total due {{ $currency }} {{ number_format((float) ($invoice->total ?? 0), 2) }}
Paid {{ $currency }} {{ number_format((float) ($invoice->paid_amount ?? 0), 2) }}
Balance due {{ $currency }} {{ number_format((float) ($invoice->balance ?? 0), 2) }}
@endif
@if(!empty($invoice->notes)) @endif @if(!empty($invoice->terms)) @endif
Notes
{{ $invoice->notes }}
Terms & conditions
{{ $invoice->terms }}
@if($paymentMethod === 'online') @elseif($selectedBankAccount) @else @endif
Payment instructions
Please make payment within {{ $daysUntilDue }} days of the invoice date.
Payment method: Online payment. Payments via payment gateway.@if($paymentUrl) {{ $paymentUrl }}@endif
Bank transfer: {{ $selectedBankAccount->bank_name }} @if($selectedBankAccount->account_name) — {{ $selectedBankAccount->account_name }}@endif @if($selectedBankAccount->account_number) — {{ $selectedBankAccount->account_number }}@endif @if($selectedBankAccount->swift_code) — SWIFT {{ $selectedBankAccount->swift_code }}@endif @if($selectedBankAccount->iban) — IBAN {{ $selectedBankAccount->iban }}@endif @if($selectedBankAccount->branch_name) — {{ $selectedBankAccount->branch_name }}@endif @if($selectedBankAccount->currency) ({{ $selectedBankAccount->currency }})@endif
Payment via bank transfer or agreed methods.