@extends('layouts.app') @section('title', 'Subscription') @section('page-title', 'Subscription Plans') @section('content') @if(session('success')) @endif @if(session('error')) @endif @if(!$razorpayConfigured)
Payment Gateway Not Configured! The payment gateway is not set up yet. Please contact the administrator to configure Razorpay API credentials.
@endif @if($activeSubscription)
Active Subscription

Plan: {{ ucfirst($activeSubscription->plan_type) }} (₹{{ number_format($activeSubscription->amount, 2) }})

Start Date: {{ $activeSubscription->start_date->format('d M Y') }}

End Date: {{ $activeSubscription->end_date->format('d M Y') }} {{ now()->diffInDays($activeSubscription->end_date) }} days remaining

@else
No Active Subscription!

Your subscription has expired or is inactive. Please subscribe to continue using the platform. All features are currently locked until you have an active subscription.

@endif

Monthly Plan

₹300

per month

  • Full access to all features
  • Unlimited customers & loans
  • All reports & analytics
  • Customer support
@if($razorpayConfigured) Subscribe Now @else @endif
Best Value

Yearly Plan

₹3,240

₹3,600 Save 10%

₹270 per month
  • Full access to all features
  • Unlimited customers & loans
  • All reports & analytics
  • Customer support
  • 10% Discount
@if($razorpayConfigured) Subscribe Now @else @endif
Subscription History
@forelse($subscriptions as $subscription) @empty @endforelse
Plan Amount Start Date End Date Status Payment Date
{{ ucfirst($subscription->plan_type) }} ₹{{ number_format($subscription->amount, 2) }} {{ $subscription->start_date ? $subscription->start_date->format('d M Y') : 'N/A' }} {{ $subscription->end_date ? $subscription->end_date->format('d M Y') : 'N/A' }} {{ ucfirst($subscription->status) }} {{ $subscription->paid_at ? $subscription->paid_at->format('d M Y H:i') : 'N/A' }}

No subscription history

@endsection