@extends('nexfloit.layouts.app') @section('title', 'Subscriptions') @section('content')

Rs. {{ number_format($stats['total'], 0) }}

Total Expected

Rs. {{ number_format($stats['paid'], 0) }}

Paid

Rs. {{ number_format($stats['pending'], 0) }}

Pending

Rs. {{ number_format($stats['locked'], 0) }}

Locked

@forelse($subscriptions as $subscription) @empty @endforelse
Tenant Billing Month Amount Due Date Status Paid At Actions
{{ $subscription->tenant->business_name }}
{{ $subscription->tenant->code }}
{{ $subscription->billing_month_display }} Rs. {{ number_format($subscription->amount, 2) }} @if($subscription->isOverdue() && $subscription->status !== 'paid') {{ $subscription->due_date->format('M d, Y') }} @else {{ $subscription->due_date->format('M d, Y') }} @endif {{ $subscription->status_badge['label'] }} @if($subscription->paid_at) {{ $subscription->paid_at->format('M d, Y') }} @else - @endif @if($subscription->status !== 'paid') Record Payment @else @endif

No subscriptions found for this period

@if($subscriptions->hasPages()) @endif
@endsection