@php use App\View\Models\DocumentPreviewViewModel; use App\Enums\Accounting\DocumentType; $type = $getType(); $viewModel = new DocumentPreviewViewModel($getRecord(), $type); extract($viewModel->buildViewData(), EXTR_SKIP); @endphp
{{ $company['address'] }}
{{ $company['city'] }} , {{ $company['state'] }} {{ $company['zip_code'] }}
{{ $company['country'] }}
@endif{{ $client['name'] }}
@if($client['address_line_1']){{ $client['address_line_1'] }}
@if($client['address_line_2']){{ $client['address_line_2'] }}
@endif{{ $client['city'] }}{{ $client['state'] ? ', ' . $client['state'] : '' }} {{ $client['postal_code'] }}
@if($client['country']){{ $client['country'] }}
@endif @endif| {{ $labels['number'] }}: | {{ $metadata['number'] }} |
| {{ $labels['reference_number'] }}: | {{ $metadata['reference_number'] }} |
| {{ $labels['date'] }}: | {{ $metadata['date'] }} |
| {{ $labels['due_date'] }}: | {{ $metadata['due_date'] }} |
| 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'] }} | ||
| Amount Due ({{ $metadata['currency_code'] }}): | {{ $totals['amount_due'] }} | ||
| Grand Total ({{ $metadata['currency_code'] }}): | {{ $totals['total'] }} | ||
{{ $terms }}
{{ $footer }}