@extends('layouts.app') @section('title', 'Rent Checklist — ' . $property->title) @section('page-title', 'Rent Collection Checklist') @section('content')
Back to Overview
{{-- Property + Agreement Summary --}}
Property
@if($property->city)
{{ $property->city }}
@endif
Tenant
@php $client = $agreement->lead && $agreement->lead->requirement ? $agreement->lead->requirement->client : null; @endphp @if($client) {{ $client->full_name }} @else
{{ $agreement->client_name ?: '—' }}
@endif
Agreement Period
{{ $agreement->agreement_start_date ? $agreement->agreement_start_date->format('d M Y') : '—' }} — {{ $agreement->agreement_end_date ? $agreement->agreement_end_date->format('d M Y') : '—' }}
@if($agreement->monthly_rent)
₹{{ number_format((float) $agreement->monthly_rent, 0) }} / month
@endif
{{-- Month-by-month grid --}}
@foreach($months as $month) @php $monthKey = $month->format('Y-m'); $monthDate = $month->format('Y-m-d'); /** @var \App\Models\RentCollectionRecord|null $rec */ $rec = $records->get($monthKey); $status = $rec ? $rec->status : 'not_marked'; $isFuture = $month->gt($thisMonth); $isPast = $month->lt($thisMonth); $isCurrent = $month->eq($thisMonth); if ($status === 'collected') { $cardBorder = 'border-success'; } elseif ($status === 'not_collected') { $cardBorder = 'border-danger'; } else { $cardBorder = $isFuture ? 'border-light' : 'border-secondary'; } @endphp
{{ $month->format('F Y') }}
@if($isCurrent) Current @elseif($isFuture) Future @endif
{{-- Status badge --}}
@if($status === 'collected') Collected @elseif($status === 'not_collected') Not Collected @else Not Marked @endif
{{-- Action buttons --}}
{{-- Meta --}}
@if($rec && $rec->marked_at) {{ $rec->markedBy ? $rec->markedBy->name : '—' }}
{{ $rec->marked_at->format('d M Y, H:i') }} @endif
@endforeach
@push('scripts') @endpush @endsection