{{-- Header with Back Link --}}
Back to Dashboard

Subscription Details

Your complete subscription information, features, and usage statistics

@if(!$stats['plan_name']) {{-- No Subscription --}}

No Active Subscription

You don't have an active subscription plan.

View Plans
@else {{-- Current Plan Card --}}

{{ $stats['plan_name'] }}

@if($stats['subscription_status'] === 'active') Active @elseif($stats['subscription_status'] === 'trialing') Trialing @elseif($stats['subscription_status'] === 'grace_period') Grace Period @elseif($stats['subscription_status'] === 'expired') Expired @else Canceled @endif

Period: {{ $stats['plan_periodicity'] }}

Started

{{ $stats['started_at'] }}

@if($stats['expired_at'])

Expires

{{ $stats['expired_at'] }}

@endif @if($stats['days_remaining'] !== null)

Days Remaining

{{ $stats['days_remaining'] > 0 ? $stats['days_remaining'] : 'Expired' }}

@endif @if($stats['canceled_at'])

Canceled

{{ $stats['canceled_at'] }}

@endif
{{-- Feature Usage Stats --}} @if(count($stats['feature_stats']) > 0)

Feature Usage

@foreach($stats['feature_stats'] as $feature)
{{ str_replace('-', ' ', $feature['name']) }}
@if($feature['is_consumable']) Consumable @elseif($feature['is_quota']) Quota @endif
@if($feature['total'] !== null && $feature['total'] > 0) {{-- Feature with limit --}}
Total {{ number_format($feature['total']) }}
Used {{ $feature['used'] !== null ? number_format($feature['used']) : '0' }}
Remaining {{ $feature['remaining'] !== null ? number_format($feature['remaining']) : '0' }}
{{-- Progress Bar --}}
@php $percentage = ($feature['total'] > 0 && $feature['used'] !== null) ? round(($feature['used'] / $feature['total']) * 100, 1) : 0; $colorClass = $percentage >= 80 ? 'bg-red-500' : ($percentage >= 50 ? 'bg-yellow-500' : 'bg-green-500'); @endphp

{{ $percentage }}% used

@else {{-- Feature without limit (unlimited or usage-based) --}}
Balance {{ $feature['balance'] !== null ? number_format($feature['balance']) : 'Unlimited' }}
Times Used {{ number_format($feature['consumption_count']) }}
@endif
@endforeach
@endif {{-- Recent Feature Consumptions --}} @if(count($stats['recent_consumptions']) > 0)

Recent Feature Usage (Last 30 Days)

@foreach($stats['recent_consumptions'] as $consumption) @endforeach
Feature Consumption Date
{{ str_replace('-', ' ', $consumption['feature_name']) }} {{ $consumption['consumption'] !== null ? number_format($consumption['consumption'], 2) : '—' }} {{ $consumption['created_at'] }}
@endif {{-- Subscription History --}} @if(count($stats['subscription_history']) > 0)

Subscription History

@foreach($stats['subscription_history'] as $history) @endforeach
Plan Started Expired Status
{{ $history['plan_name'] }} {{ $history['started_at'] }} {{ $history['expired_at'] ?? '—' }} @if($history['status'] === 'canceled') Canceled @elseif($history['status'] === 'expired') Expired @else Completed @endif
@endif @endif