@extends('layouts.admin') @section('title','Reports & Analytics') @section('breadcrumb')@endsection @section('admin-content')

Reports & Analytics

Comprehensive fee collection analytics

Collection PDF Advisor PDF
{{-- FILTER BAR --}}
{{-- KPI CARDS --}}
Total Collected
₹{{ number_format($totalCollected, 0) }}
{{ $totalPayments }} payments
Total Due
₹{{ number_format($totalDue, 0) }}
Total Students
{{ $totalStudents }}
Collection Rate
@php $rate = ($totalCollected + $totalDue) > 0 ? round($totalCollected / ($totalCollected + $totalDue) * 100, 1) : 0; @endphp
{{ $rate }}%
{{-- CHARTS ROW --}}
Monthly Collection Trend
Institute-wise Collection
Payment Modes
{{-- TABBED TABLES --}}
{{-- INSTITUTE-WISE --}}
@forelse($instituteReport as $idx => $row) @empty @endforelse
#InstituteStudents Total FeeCollectedDueProgress
{{ $idx+1 }} {{ $row->name }} {{ $row->students }} ₹{{ number_format($row->total_fee, 0) }} ₹{{ number_format($row->collected, 0) }} ₹{{ number_format($row->due, 0) }} @php $pct = $row->total_fee > 0 ? round($row->collected/$row->total_fee*100,1) : 0; @endphp
{{ $pct }}%
No data.
{{-- SESSION-WISE --}}
@forelse($sessionReport as $idx => $row) @empty @endforelse
#SessionStudentsPayments Total FeeCollectedDueProgress
{{ $idx+1 }} {{ $row->name }} {{ $row->students }} {{ $row->payments }} ₹{{ number_format($row->total_fee, 0) }} ₹{{ number_format($row->collected, 0) }} ₹{{ number_format($row->due, 0) }} @php $pct = $row->total_fee > 0 ? round($row->collected/$row->total_fee*100,1) : 0; @endphp
{{ $pct }}%
No data.
{{-- COURSE-WISE --}}
@forelse($courseReport as $idx => $row) @empty @endforelse
#CourseStudentsPayments Total FeeCollectedDueProgress
{{ $idx+1 }} {{ $row->name }} {{ $row->code ?? '' }} {{ $row->students }} {{ $row->payments }} ₹{{ number_format($row->total_fee, 0) }} ₹{{ number_format($row->collected, 0) }} ₹{{ number_format($row->due, 0) }} @php $pct = $row->total_fee > 0 ? round($row->collected/$row->total_fee*100,1) : 0; @endphp
{{ $pct }}%
No data.
{{-- ADVISOR COMMISSION --}}
@forelse($advisorReport as $idx => $row) @empty @endforelse @if(count($advisorReport) > 0) @endif
#AdvisorCodeStudents Total FeeCollectedRateCommission Earned
{{ $idx+1 }} {{ $row->name }} {{ $row->advisor_code }} {{ $row->students }} ₹{{ number_format($row->total_fee, 0) }} ₹{{ number_format($row->collected, 0) }} {{ $row->commission }}% ₹{{ number_format($row->commission_amt, 0) }}
No data.
Total Commission: ₹{{ number_format($advisorReport->sum('commission_amt'), 0) }}
{{-- TOP PAYERS --}}
@forelse($topStudents as $idx => $row) @empty @endforelse
#StudentCourseInstitute Total Paid
{{ $idx+1 }} {{ $row->student_name }}
{{ $row->enrollment_no }}
{{ $row->course_name }} {{ $row->institute_name }} ₹{{ number_format($row->total_paid, 0) }}
No data.
@push('scripts') @endpush @endsection