| Type | Description | Unit | Insurance Amount | Subtotal | Apply Insurance Amount | Action |
|---|---|---|---|---|---|---|
| @if($editing_invoice_index === $index) @else {{ $item['type'] }} @endif | @if($editing_invoice_index === $index) @else {{ $item['description'] }} @endif | @if($editing_invoice_index === $index) @else {{ $item['unit'] }} @endif | @if($editing_invoice_index === $index) @else ${{ number_format($item['insurance_amount'], 2) }} @endif | ${{ number_format(($item['unit'] ?? 0) * ($item['insurance_amount'] ?? 0), 2) }} | @if($editing_invoice_index === $index) @else {{ $item['apply_insurance_amount'] ? 'Yes' : 'No' }} @endif | @if($editing_invoice_index === $index) @else @endif |
| Total: | ${{ number_format( collect($invoice_items) ->map( fn($item) => (float) ($item['insurance_amount'] ?? 0) * (float) ($item['unit'] ?? 0) ) ->sum(), 2 ) }} | |||||
| Appraiser Name | Date Created | Type | Description | Appraiser Unit | Appraiser Amount | Subtotal | Manual Appraiser Fee | Action | |
|---|---|---|---|---|---|---|---|---|---|
| {{ $pitem['appraiser_name'] }} | {{ $pitem['created_at']->format('m/d/Y') }} | @if($editing_payroll_index === $pindex) @else {{ $pitem['type'] }} @endif | @if($editing_payroll_index === $pindex) @else {{ $pitem['description'] }} @endif | @if($editing_payroll_index === $pindex) @else {{ $pitem['appraiser_unit'] }} @endif | @if($editing_payroll_index === $pindex) @else {{ $pitem['appraiser_amount'] ? '$' . number_format($pitem['appraiser_amount'], 2) : '-' }} @endif | ${{ number_format(($pitem['appraiser_unit'] ?? 0) * ($pitem['appraiser_amount'] ?? 0), 2) }} | @if($editing_payroll_index === $pindex) @else {{ $pitem['manual_appraiser_fee'] ? 'Yes' : 'No' }} @endif | @if($editing_payroll_index === $pindex) @else @endif | |
| Total: | ${{ number_format($grandTotal, 2) }} | ||||||||