@use('App\Utilities\Currency\CurrencyAccessor') @php $data = $this->form->getRawState(); $viewModel = new \App\View\Models\InvoiceTotalViewModel($this->record, $data); extract($viewModel->buildViewData(), \EXTR_SKIP); $isInvoiceLevelDiscount = $data['discount_method'] === 'invoice'; @endphp
{{-- Items --}} {{-- Description --}} {{-- Quantity --}} {{-- Price --}} {{-- Taxes --}} {{-- Amount --}} @if($isInvoiceLevelDiscount) @else @endif
Subtotal: {{ $subtotal }}
Taxes: {{ $taxTotal }}
Discount:
@foreach($getChildComponentContainer()->getComponents() as $component)
{{ $component }}
@endforeach
({{ $discountTotal }})
Discounts: ({{ $discountTotal }})
Total: {{ $grandTotal }}