@extends('layouts.app') @section('content') @include('layouts.toolbar')

Head Counts for Each Grade Summary Report


@if(isset($dataArray['enrollemntsGrade']) && count($dataArray['enrollemntsGrade'])) @foreach($dataArray['enrollemntsGrade'] as $gradeKey => $gradeValue) @php $withdrawns = isset($gradeValue['inactive_students_withdrawn']) ? json_encode($gradeValue['inactive_students_withdrawn']) :json_encode([]); $cancelled = isset($gradeValue['cancelled_students_name']) ? json_encode($gradeValue['cancelled_students_name']) :json_encode([]); $inactive_students_name = isset($gradeValue['inactive_students_name']) ? json_encode($gradeValue['inactive_students_name']) :json_encode([]); @endphp {{----}} @endforeach @else @endif @if(isset($dataArray['summaryCount']) && count($dataArray['summaryCount'])) @php $activeCount = isset($dataArray['summaryCount']['active_students']) ? $dataArray['summaryCount']['active_students'] : 0; $InActiveCount = isset($dataArray['summaryCount']['inactive_students']) ? $dataArray['summaryCount']['inactive_students'] : 0; $withdrawnCount = isset($dataArray['summaryCount']['withdrawn_students']) ? $dataArray['summaryCount']['withdrawn_students'] : 0; $calcelledCount = isset($dataArray['summaryCount']['cancelled_students']) ? $dataArray['summaryCount']['cancelled_students'] : 0; $allCount = $activeCount + $InActiveCount + $withdrawnCount; @endphp @else @endif
Grades Active List Enrollments Count Active Count Inactive Count Withdrawn Counts Cancelled Counts
{{ $gradeKey }} @if(isset($gradeValue['enrollments_students']) && count($gradeValue['enrollments_students']))
@foreach($gradeValue['enrollments_students'] as $name) {{ $name }} @endforeach
@endif
{{ isset($gradeValue['enrollments']) ? $gradeValue['enrollments'] : 0 }} {{ isset($gradeValue['active_students']) ? $gradeValue['active_students'] : 0 }} {{ isset($gradeValue['inactive_students']) ? $gradeValue['inactive_students'] : 0 }} {{ isset($gradeValue['inactive_students_withdrawn']) ? count($gradeValue['inactive_students_withdrawn']) : 0 }} {{ isset($gradeValue['cancelled_students_name']) ? count($gradeValue['cancelled_students_name']) : 0 }} @if(isset($gradeValue['students_withdrawn_after_selected_date']) && count($gradeValue['students_withdrawn_after_selected_date']))
@foreach($gradeValue['students_withdrawn_after_selected_date'] as $nameAndDate) {{ $nameAndDate['student_name'].' ('.$nameAndDate['grade_name'].'; ' . dateFormat2($nameAndDate['enrollment_end_date']).')' }} @endforeach
@endif
No Data - 0 0 0 0 0
Total {{ $allCount }} {{ $activeCount }} {{ $InActiveCount }} {{ $withdrawnCount }} {{ $calcelledCount }}
Total 0 0 0 0 0

@endsection @section('js') @endsection