@if(isset($templateView) && view()->exists($templateView))
@include($templateView, [
'invoice' => $invoice,
'invoiceData' => $data ?? [],
'customer' => $customer ?? null,
'companySettings' => $companySettings ?? [],
'items' => $items ?? [],
'subtotal' => $subtotal ?? 0,
'taxAmount' => $taxAmount ?? 0,
'discount' => $discount ?? 0,
'total' => $total ?? 0,
'paidAmount' => $paidAmount ?? 0,
'balanceDue' => $balanceDue ?? 0,
'selectedCurrency' => $selectedCurrency ?? null,
])
@else
Invoice template not found
@endif
Powered by {{ $companySettings['company_name'] ?? config('app.name') }}