@extends('layouts.business') @section('title', 'My Subscription') @section('content')

My Subscription

Manage your plan and view available options

@if($currentSubscription)

{{ $currentSubscription->plan->name }}

{{ ucfirst($currentSubscription->plan->tier ?? 'N/A') }} Plan - Active

AED {{ number_format($currentSubscription->plan->price, 2) }}

per month

Subscription Period

{{ $currentSubscription->start_date->format('M d') }} - {{ $currentSubscription->end_date->format('M d, Y') }}

Days Remaining

{{ $currentSubscription->daysRemaining() }} days

Auto-Renewal

@if($currentSubscription->auto_renew) Enabled @else Disabled @endif

Next Billing

{{ $currentSubscription->next_billing_date->format('M d, Y') }}

@if($currentSubscription->isExpiringSoon()) @endif

Resource Usage

@php $venues = $usage['venues'] ?? ['used' => 0, 'limit' => 1, 'unlimited' => false]; $staff = $usage['staff'] ?? ['used' => 0, 'limit' => 1, 'unlimited' => false]; $offers = $usage['offers'] ?? ['used' => 0, 'limit' => 5, 'unlimited' => false]; $campaigns = $usage['campaigns_this_month'] ?? ['used' => 0, 'limit' => 1, 'unlimited' => false]; @endphp
Venues
{{ $venues['used'] }}/{{ $venues['unlimited'] ? '∞' : $venues['limit'] }}

{{ $venues['used'] }} of {{ $venues['unlimited'] ? 'unlimited' : $venues['limit'] }} venues used

Staff Members
{{ $staff['used'] }}/{{ $staff['unlimited'] ? '∞' : $staff['limit'] }}

{{ $staff['used'] }} of {{ $staff['unlimited'] ? 'unlimited' : $staff['limit'] }} staff members used

Offers
{{ $offers['used'] }}/{{ $offers['unlimited'] ? '∞' : $offers['limit'] }}

{{ $offers['used'] }} of {{ $offers['unlimited'] ? 'unlimited' : $offers['limit'] }} offers used

Campaigns (Month)
{{ $campaigns['used'] }}/{{ $campaigns['unlimited'] ? '∞' : $campaigns['limit'] }}

{{ $campaigns['used'] }} of {{ $campaigns['unlimited'] ? 'unlimited' : $campaigns['limit'] }} campaigns used

@else
@endif

{{ $currentSubscription ? 'Other Available Plans' : 'Choose Your Plan' }}

{{ $currentSubscription ? 'Upgrade to access more features' : 'Scale your business with the right features at the right price' }}

@forelse($availablePlans as $plan)
@empty

No subscription plans available

@endforelse
Plan Comparison
@foreach($availablePlans as $plan) @endforeach @foreach($availablePlans as $plan) @endforeach @foreach($availablePlans as $plan) @endforeach @foreach($availablePlans as $plan) @endforeach @foreach($availablePlans as $plan) @endforeach @foreach($availablePlans as $plan) @endforeach @foreach($availablePlans as $plan) @endforeach
Feature{{ $plan->name }}
Venues {{ $plan->max_venues == -1 ? '∞' : $plan->max_venues }}
Offers {{ $plan->max_offers == -1 ? '∞' : $plan->max_offers }}
Staff Members {{ $plan->max_staff == -1 ? '∞' : $plan->max_staff }}
Campaigns/Month {{ $plan->monthly_campaigns == -1 ? '∞' : $plan->monthly_campaigns }}
Analytics @if($plan->analytics_access) @else @endif
Priority Support @if($plan->priority_support) @else @endif
@endsection