@extends('layouts.master') @section('title', 'Agent Subscription - HomesInKerala') @section('content')
@if(session('success'))
{{ session('success') }}
@endif

Subscription

Choose a membership plan for your property listings.

@include('frontend.agent.partials.nav')

Current Plan

@if($agent->currentSubscription)

{{ $agent->currentSubscription->subscription->name }}

Expires {{ $agent->currentSubscription->expires_at?->format('d M Y') }} · {{ $agent->currentSubscription->listing_limit_label }} listings · {{ $agent->currentSubscription->lead_access ? 'Lead access enabled' : 'No lead access' }}

@else

No active subscription. Select a plan below.

@endif
@foreach($plans as $plan)

{{ $plan->name }}

{!! \App\Support\SiteSettings::currencySymbol() !!}{{ number_format((float) $plan->price) }}
  • {{ $plan->duration_days }} days validity
  • {{ $plan->listing_limit_label }} property listings
  • {{ $plan->featured_listing_limit_label }} featured listings
  • {{ $plan->lead_access ? 'Lead access included' : 'Lead access not included' }}
  • {{ $plan->premium_badge ? 'Premium badge included' : 'No premium badge' }}
@csrf
@endforeach

Subscription History

@forelse($subscriptions as $subscription)
{{ $subscription->subscription->name }}
{{ $subscription->starts_at?->format('d M Y') ?: 'Pending' }} - {{ $subscription->expires_at?->format('d M Y') ?: '-' }}
{{ Str::headline($subscription->status) }}
@empty

No subscription history yet.

@endforelse
{{ $subscriptions->links() }}
@endsection