@php use App\View\Models\DocumentPreviewViewModel; use App\Enums\Accounting\DocumentType; $type = $getType(); $viewModel = new DocumentPreviewViewModel($getRecord(), $type); extract($viewModel->buildViewData(), EXTR_SKIP); @endphp
@if($logo && $style['show_logo']) @endif
@if($header)

{{ $header }}

@endif
@foreach($lineItems as $index => $item) $index % 2 === 0])> @endforeach @if($totals['discount']) @endif @if($totals['tax']) @endif @if($totals['amount_due']) @endif
Items Quantity Price Amount
{{ $item['name'] }} @if($item['description'])
{{ $item['description'] }}
@endif
{{ $item['quantity'] }} {{ $item['unit_price'] }} {{ $item['subtotal'] }}
Subtotal: {{ $totals['subtotal'] }}
Discount: ({{ $totals['discount'] }})
Tax: {{ $totals['tax'] }}
Total: {{ $totals['total'] }}
{{ $labels['amount_due'] }} ({{ $metadata['currency_code'] }}): {{ $totals['amount_due'] }}

Terms & Conditions

{{ $terms }}

{{ $footer }}