{{-- resources/views/filament/modals/missing-payments.blade.php --}}
{{-- Lease Information Header --}}

Lease Information

Tenant: {{ $lease->tenant->name ?? 'N/A' }}

Period: {{ $lease->start_month->format('M Y') }} - {{ $lease->end_month ? $lease->end_month->format('M Y') : 'Ongoing' }}

Status: {{ ucfirst($lease->status) }}

{{-- Payment Statistics --}}

Paid Months

{{ $stats['paid_months'] }}

Missing Months

{{ $stats['missing_months'] }}

Overdue Months

{{ $stats['overdue_months'] }}

Progress

{{ $stats['payment_progress'] }}%

{{-- Progress Bar --}}
Payment Progress {{ $stats['paid_months'] }}/{{ $stats['total_months'] }} months
{{-- Missing Payments List --}} @if($missingMonths->count() > 0)

Missing Payment Months ({{ $missingMonths->count() }})

@foreach($missingMonths as $month) @php $isOverdue = $month->lessThan(now()->startOfMonth()); $isCurrentMonth = $month->isSameMonth(now()); @endphp
@if($isOverdue) @elseif($isCurrentMonth) @else @endif

{{ $month->format('F Y') }}

@if($isOverdue) Overdue ({{ $month->diffForHumans() }}) @elseif($isCurrentMonth) Current Month @else Upcoming @endif

@if($isOverdue) Overdue @elseif($isCurrentMonth) Due Now @else Pending @endif
@endforeach
@else

No Missing Payments

All payments are up to date!

@endif