@php /* * 통계관리 테이블 리스트 * */ #dump($listData); $sum_weeks = 0; $sum_won = 0; $sum_com_agency = 0; @endphp @push('head') @endpush
@foreach ($listData as $idx => $row) @php $sum_weeks += $row['weeks']; $sum_won += $row["won"]; $sum_com_agency += $row["com_agency"]; @endphp @endforeach
에이전시명 기간(월) 최종주수 총학비(원) 커미션(agency) 커미션(school)
{{$row["name"]}} {{$row["month"]}} {{ number_format($row['weeks']) }} {{ number_format($row["won"]) }} {{ number_format($row["com_agency"]) }} -
합계 - {{ number_format($sum_weeks) }} {{ number_format($sum_won) }} {{ number_format($sum_com_agency) }} -