@extends('layouts.admin') @section('title', 'Admin Dashboard') @section('breadcrumb')@endsection @section('admin-content')

Dashboard

Welcome back, {{ auth()->user()->name }}

{{ now()->format('l, d F Y') }}

Total Students

{{ number_format($stats['total_students']) }}

Total Collected

₹{{ number_format($stats['total_collected'], 0) }}

Total Due

₹{{ number_format(max($stats['total_due'],0), 0) }}

Pending Grievances

{{ $stats['pending_grievances'] }}

{{ $stats['total_institutes'] }}

Institutes

{{ $stats['total_courses'] }}

Courses

{{ $stats['total_advisors'] }}

Advisors

{{ $stats['total_cashiers'] }}

Cashiers

Active Notices

{{ $stats['active_notices'] }}

Post Notice
Monthly Collection (Last 6 Months)
Pending Grievances
@forelse($recent_grievances as $g)
{{ $g->student->name ?? 'N/A' }} {{ $g->status }}

{{ $g->subject }}

{{ $g->created_at->diffForHumans() }}
@empty
No pending grievances
@endforelse @if($recent_grievances->count()) @endif
Recent Fee Payments
View All
@forelse($recent_payments as $p) @empty @endforelse
ReceiptStudentAmountModeDateCashier
{{ $p->receipt_no }} {{ $p->student->name ?? 'N/A' }} ₹{{ number_format($p->amount_paid, 0) }} {{ $p->payment_mode }} {{ $p->payment_date->format('d M Y') }} {{ $p->cashier->name ?? 'N/A' }}
No payments yet.
@endsection @push('scripts') @endpush