@if(empty($data_tests))
For the given inputs, test results are not found.
@else @foreach ($data_tests as $data_test)
Test: {{$data_test['test']}}
@php $stt = 1; @endphp @foreach ($data_test['branchs'] as $branch)
@if(request()->get('report_type') == 'company') @endif
Total Students - {{ $branch['student']['Total Assigned Students'] }}
Total Present - {{ $branch['student']['Total Present Number'] }}
@if($branch['detail']['branch'] == 'All') @endif
@push('script') @if(request()->get('report_type') == 'company') @php /* company paper report Compare */ $company_compare = json_decode($company_specific,true); //dd($company_specific); $chart_labels = array_values($company_compare["chart_labels"]); $chart_data = $company_compare["chart_data"]; $chart_titles = $company_compare["chart_titles"]; $line_color = ['#B8255f','#DB4035','#ff9933','#fad000','#afb83b','#7ecc49','#299438','#158fad','#14aaf5','#4073ff','#884dff','#af38eb','#eb96eb','#e05194']; $company_chart = ''; foreach($chart_titles as $key => $value){ $company_chart .='{label: "'.$value.'", fill: false, lineTension: 0, borderColor: "'.$line_color[$key].'", data: ['; foreach($chart_data[$key] as $sub_value){ $company_chart .= $sub_value.','; } $company_chart .='], pointBorderColor: "'.$line_color[$key].'", pointBackgroundColor: "'.$line_color[$key].'", datalabels: { align: "right", color: "black", font: { weight: "bold", size: 14 } //backgroundColor: "black", //display: "auto" } },'; } @endphp {{-- Branch wise performance chart --}} @php $dept_labels = array_values($data_test['depts']['depts']); $slow_learners = array_values($data_test['depts']['Slow Learner']); $mediocres = array_values($data_test['depts']['Mediocres']); $performers = array_values($data_test['depts']['Performers']); $title = count($data_test['depts']['depts']) > 1 ? 'Branch Wise' : ucwords(reset($data_test['depts']['depts'])); $stacked_bar_width =""; if(count($dept_labels)==1){ $stacked_bar_width =",barPercentage: 0.4"; } @endphp //End of Branch wise performance chart @endif {{-- Overall performance chart --}} @php $overall_labels = array_keys($branch['section']['OverallPerf']); $overall_data = array_values($branch['section']['OverallPerf']); @endphp @if($branch['detail']['branch'] == 'All') {{-- Branch wise Attendance chart --}} @php $bwa_labels = array_keys($branch['section']['att_by_depts']); $bwa_data = array_values($branch['section']['att_by_depts']); $bwa_total = array_values($branch['section']['total_students_by_depts']); @endphp @endif {{-- Section wise performance chart --}} @php $section_labels = array_values($branch['section']['subjects']['subjects']); $need_training_data = array_values($branch['section']['subjects']['ByPerf']['Need Training']); $need_practice_data = array_values($branch['section']['subjects']['ByPerf']['Need Practice']); $performers_data = array_values($branch['section']['subjects']['ByPerf']['Performers']); $sectionwise_bar_width = ""; if(count($section_labels)==1){ $sectionwise_bar_width = ",barPercentage: 0.4"; } @endphp {{-- Timer chart --}} @php $timer_data = array_values($branch['section']['time']); @endphp @php $stt = $stt + 1; @endphp @endpush @endforeach
@endforeach @endif