수강생 수 & 매출 통계
| 구분 | @foreach($monthArray as $row){{Carbon\Carbon::parse($row)->month}}월 | @endforeach합계 | |
|---|---|---|---|
| 인원 | 수강생수 | @foreach($monthArray as $row) @php $countData = $monthlyCountData->where('target_month', $row)->first(); @endphp{{$countData?->student_count ?? 0}} | @endforeach{{$totalCountData->student_count}} |
| ①신규 | @foreach($monthArray as $row) @php $countData = $monthlyCountData->where('target_month', $row)->first(); @endphp{{$countData?->new ?? 0}} | @endforeach{{$totalCountData->new}} | |
| ②재등록 | @foreach($monthArray as $row) @php $countData = $monthlyCountData->where('target_month', $row)->first(); @endphp{{$countData?->renew ?? 0}} | @endforeach{{$totalCountData->renew}} | |
| ③기존 | @foreach($monthArray as $row) @php $countData = $monthlyCountData->where('target_month', $row)->first(); @endphp{{$countData?->active ?? 0}} | @endforeach{{$totalCountData->active}} | |
| 매출 인원수(①+②) | @foreach($monthArray as $row) @php $countData = $monthlyCountData->where('target_month', $row)->first(); @endphp{{$countData?->revenue_person_count ?? 0}} | @endforeach{{$totalCountData->revenue_person_count}} | |
| 환불인원수 | @foreach($monthArray as $row) @php $countData = $monthlyCountData->where('target_month', $row)->first(); @endphp{{$countData?->refund_person_count ?? 0}} | @endforeach{{$totalCountData->refund_person_count}} | |
| 총 인원 | @foreach($monthArray as $row) @php $countData = $monthlyCountData->where('target_month', $row)->first(); @endphp{{$countData?->total_person_count ?? 0}} | @endforeach{{$totalCountData->total_person_count}} | |
| 매출 | 신규 | @foreach($combinedRevenueData as $key => $data){{ number_format($data['new']) }} | @endforeach{{ number_format($totalRevenueData['new']) }} |
| 재등록 | @foreach($combinedRevenueData as $key => $data){{ number_format($data['renew']) }} | @endforeach{{ number_format($totalRevenueData['renew']) }} | |
| 변경 | @foreach($combinedRevenueData as $key => $data){{ number_format($data['change']) }} | @endforeach{{ number_format($totalRevenueData['change']) }} | |
| 기타 | @foreach($combinedRevenueData as $key => $data){{ number_format($data['etc']) }} | @endforeach{{ number_format($totalRevenueData['etc']) }} | |
| 시험센터 대여 | @foreach($combinedCalcData as $month => $data){{ number_format($data['lease']) }} | @endforeach{{ number_format($totalCalcData['lease']) }} | |
| B2B 쉐어 | @foreach($combinedCalcData as $month => $data){{ number_format($data['b2b']) }} | @endforeach{{ number_format($totalCalcData['b2b']) }} | |
| 환불 | @foreach($combinedRevenueData as $key => $data){{ number_format($data['refund'] * -1) }} | @endforeach{{ number_format($totalRevenueData['refund'] * -1) }} | |
| 총 매출 | @foreach($combinedRevenueData as $data){{ number_format($data['total']) }} | @endforeach{{ number_format($totalRevenueData['total']) }} | |
| 정산 | 사업팀 일반 | @foreach($combinedCalcData as $data){{ number_format($data['business_general']) }} | @endforeach{{ number_format($totalCalcData['business_general']) }} |
| 사업팀 기타 | @foreach($combinedCalcData as $month => $data){{ number_format($data['business_etc']) }} | @endforeach{{ number_format($totalCalcData['business_etc']) }} | |
| 사업팀 합계 | @foreach($combinedCalcData as $data){{ number_format($data['business_general'] + $data['business_etc']) }} | @endforeach{{ number_format($totalCalcData['business_general'] + $totalCalcData['business_etc']) }} | |
| TNC팀 일반 | @foreach($combinedCalcData as $data){{ number_format($data['tnc_general']) }} | @endforeach{{ number_format($totalCalcData['tnc_general']) }} | |
| TNC팀 기타 | @foreach($combinedCalcData as $month => $data){{ number_format($data['tnc_etc']) }} | @endforeach{{ number_format($totalCalcData['tnc_etc']) }} | |
| TNC팀 합계 | @foreach($combinedCalcData as $data){{ number_format($data['tnc_general'] + $data['tnc_etc']) }} | @endforeach{{ number_format($totalCalcData['tnc_general'] + $totalCalcData['tnc_etc']) }} | |