{{ __('Thống kê Quá trình Cấp phát') }}

{{-- BỘ LỌC --}}
@foreach($schoolYears as $y) @endforeach
@foreach($semesters as $s) @endforeach
@foreach($faculties as $f) @endforeach
@foreach($classes as $c) @endforeach
Lọc dữ liệu
{{-- BẢNG KẾT QUẢ --}}
@php $totalMoney = 0; @endphp @forelse($statistics as $index => $item) @php $totalMoney += $item->total_amount; // Tạo link chi tiết dựa trên loại $detailUrl = '#'; $batchName = ''; if ($item->type == 'monthly') { $batchName = "Sinh hoạt phí Tháng {$item->payment_month}/{$item->payment_year}"; $detailUrl = route('allowances.statistics.show', [ 'type' => 'monthly', 'class_id' => $item->class_id, 'month' => $item->payment_month, 'year' => $item->payment_year ]); } else { $batchName = "Học kỳ {$item->semester_number} ({$item->school_year_name}) - Đợt {$item->installment_number}"; $detailUrl = route('allowances.statistics.show', [ 'type' => 'semester', 'class_id' => $item->class_id, 'semester_id' => $item->semester_id, 'installment' => $item->installment_number ]); } @endphp @empty @endforelse @if($statistics->isNotEmpty()) @endif
STT Khoa Lớp Đợt cấp phát Số lượng Tổng tiền Chi tiết
{{ $index + 1 }} {{ $item->faculty_name }} {{ $item->class_name }} {{ $batchName }} {{ $item->total_students }} SV {{ number_format($item->total_amount) }} Xem DS
Không có dữ liệu cấp phát nào.
TỔNG CỘNG TOÀN BỘ: {{ number_format($totalMoney) }}