@extends('layouts.cashier') @section('title','My Reports') @section('breadcrumb')@endsection @push('styles') @endpush @section('cashier-content') {{-- Page Header --}}

My Reports

Your personal fee collection analytics

Collection PDF
{{-- All-time KPI Cards --}}

Today's Collection

₹{{ number_format($todayAmount, 0) }}

{{ $todayCount }} receipts

This Month

₹{{ number_format($monthAmount, 0) }}

{{ $monthCount }} receipts

Total (All Time)

₹{{ number_format($totalAmount, 0) }}

{{ $totalCount }} receipts

Filtered Period

₹{{ number_format($filteredTotal, 0) }}

{{ $filteredCount }} receipts

{{-- Filter Card --}}
Date Range Filter
{{-- Charts --}}
Daily Collection Trend
{{ $from }} to {{ $to }}
@if($dailyTrend->isEmpty())

No data for this period.

@else
@endif
Payment Modes
{{ $modeReport->count() }} modes
@if($modeReport->isEmpty())

No data for this period.

@else
@endif
{{-- Mode Summary Cards --}} @if($modeReport->isNotEmpty())
@foreach($modeReport as $mode)
@if(strtolower($mode->payment_mode) == 'cash') @elseif(in_array(strtolower($mode->payment_mode), ['online','upi','neft','rtgs'])) @elseif(strtolower($mode->payment_mode) == 'cheque') @else @endif

{{ strtoupper($mode->payment_mode) }}

₹{{ number_format($mode->total, 0) }}
{{ $mode->count }} transactions
@endforeach
@endif {{-- Payments Table --}}
Payment Records
{{ $recentPayments->total() }} records
@forelse($recentPayments as $p) @empty @endforelse
Receipt No Date Student Institute Course Mode Amount
{{ $p->receipt_no }} {{ $p->payment_date->format('d M Y') }} {{ optional($p->student)->name }}
{{ optional($p->student)->enrollment_no }}
{{ optional(optional($p->student)->institute)->name ?? '-' }} {{ optional(optional($p->student)->course)->name ?? '-' }} {{ $p->payment_mode }} ₹{{ number_format($p->amount_paid, 0) }}
No payments found for this period.
@if($recentPayments->hasPages()) @endif
@endsection @push('scripts') @endpush