@php $actual = 0; $npl = 0; $discount = 0; $total = 0; @endphp @foreach ( $items as $report ) @php $amount = $report['actual'] + $report['discount']; $actual += $report['actual']; $npl += $report['npl']; $discount += $report['discount']; $total += $amount; @endphp @endforeach
รายงานยอดเก็บเงิน
ประจําเดือน : {{ $monthly }} สาย : {{ $careers }}
วันที่ ยอดเก็บเงินจริง NPL ส่วนลด คงเหลือ
{{ slateDateTH($report['date']) }} {{ nb($report['actual'],2) }} {{ nb($report['npl'],2) }} {{ nb($report['discount'],2) }} {{ nb($amount,2) }}
รวม: {{ nb($actual,2) }} {{ nb($npl,2) }} {{ nb($discount,2) }} {{ nb($total,2) }}