@extends('layouts/contentNavbarLayout') @section('title', 'Rent Management') @section('vendor-style') @endsection @section('content')

Rent Management

Add Rent
@if (session('success')) @endif @if (session('error')) @endif
{{ number_format($stats['rent_paid_count'] ?? 0) }} Rent Paid (current month)
₹ {{ number_format($stats['rent_paid_total'] ?? 0, 2) }} Total Collected
{{ number_format($stats['rent_pending_count'] ?? 0) }} Rent Pending
Reset
@forelse($rentPaid as $r) @php $s = $r->student; @endphp @empty @endforelse
Receipt No. Student Period Amount Payment Mode Paid At Action
{{ $r->receipt_no ?? 'R' . $r->id }}
@if($s->documents->where('document_type', 'profile_photo')->first()) @else {{ strtoupper(mb_substr($s->first_name ?? '', 0, 1)) }} @endif
{{ $r->period_from->format('d/m/Y') }} – {{ $r->period_to->format('d/m/Y') }} ₹ {{ number_format($r->amount, 2) }} {{ $paymentModes[$r->payment_mode] ?? $r->payment_mode }} {{ $r->paid_at?->format('d/m/Y H:i') ?? '—' }}
No rent paid records for the selected period.
@forelse($rentPending as $s) @empty @endforelse
Student Room / Bed Rent (Bed) Action
@if($s->documents->where('document_type', 'profile_photo')->first()) @else {{ strtoupper(mb_substr($s->first_name ?? '', 0, 1)) }} @endif
{{ $s->room_bed_identifier ?? '—' }} ₹ {{ $s->bed ? number_format($s->bed->rent_amount ?? 0, 2) : '—' }} Add Rent
No pending rent for current month.
{{-- Receipt Modal --}}
@endsection @section('vendor-script') @endsection @section('page-script') @endsection