@php $academicPerformance = $academicPerformance ?? null; $performanceQuarter = $academicPerformance['quarter'] ?? [ 'label' => 'Current Quarter', 'start' => now()->startOfQuarter()->toDateString(), 'end' => now()->endOfQuarter()->toDateString(), 'no' => now()->quarter, 'year' => now()->year, ]; $performanceSummary = $academicPerformance['summary'] ?? [ 'finished' => 0, 'renewed' => 0, 'auto_renew' => 0, 'retention' => 0, 'old_data' => 0, 'percentage' => 0, ]; $performanceStudents = $academicPerformance['students'] ?? [ 'finished' => [], 'renewed' => [], 'auto_renew' => [], 'retention' => [], 'old_data' => [], ]; $percentage = $performanceSummary['percentage'] ?? 0; $performanceRank = $academicPerformance['rank'] ?? [ 'position' => 0, 'total' => 0, ]; $academicPerformanceDataUrl = request()->routeIs('profile') ? route('profile.academic_performance_data') : route('staffs.academic_performance_data', $staff->id); @endphp
| Rank | Finished | Renewed | Auto renew sales | Auto renew retention | Old Data | Percentage |
|---|---|---|---|---|---|---|
| {{ $performanceRank['position'] ?? 0 }} | {{-- --}} | {{-- --}} | {{ $performanceSummary['auto_renew'] ?? 0 }} | {{ $performanceSummary['retention'] ?? 0 }} | {{ $performanceSummary['old_data'] ?? 0 }} |
|