Appraisers Payroll

Appraiser fee reflects on payroll based on when the fee was created, not when the file is marked completed. File status can be in any status and appraiser fee will show on report.
@if(count($report_data) > 0)
@php $grandTotal = 0; $totalUnits = 0; @endphp @foreach($report_data as $data) @php $total = $data->appraiser_unit * $data->appraiser_amount; $grandTotal += $total; $totalUnits += $data->appraiser_unit; @endphp @endforeach
File # Claim # Appraiser Insurance Date Completed Type Desc. Unit Unit Price Total Paid
{{ $data->file_no }} {{ $data->claim_number }} {{ $data->name ?? '' }} {{ $data->company_name ?? '' }} {{ $data->complete_date }} {{ $data->type ?? '' }} {{ $data->description }} {{ $data->appraiser_unit }} ${{ $data->appraiser_amount }} ${{ ($data->appraiser_unit * $data->appraiser_amount) }} @if ($data->paid) Yes @else No @endif
Total: {{ $totalUnits }} ${{ number_format($grandTotal, 2) }}
@endif