{{ __('Subscription Plans') }}

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(session('info'))
{{ session('info') }}
@endif

My Account Status

Remaining Credits

{{ auth()->user()->credits }}

1 credit = 1 test session

Active Plan

{{ $activeSubscription ? ucfirst(str_replace('_', ' ', $activeSubscription->plan_name)) : 'No Active Plan' }}

Expiry Date

{{ $activeSubscription ? $activeSubscription->end_date->format('M d, Y') : 'N/A' }}

@if($activeSubscription)

{{ $activeSubscription->remainingDays() }} days remaining

@endif

Total Tests Taken

{{ auth()->user()->testSessions()->count() }}

@if(!$activeSubscription || auth()->user()->credits < 1)
@if(!auth()->user()->hasActiveSubscription()) Please subscribe to an active plan to continue taking tests. @else You have no credits remaining. Please renew or upgrade your plan. @endif
@endif

Available Plans

@foreach($plans as $plan) @if($plan->is_active)
@if($plan->name === '6_months')
BEST VALUE
@endif @if($activeSubscription && $activeSubscription->plan_id == $plan->id)
CURRENT PLAN
@endif @php $gradients = [ 'monthly' => ['from-blue-500', 'to-indigo-600'], '6_months' => ['from-green-500', 'to-emerald-600'], 'yearly' => ['from-purple-500', 'to-pink-600'], ]; $gradient = $gradients[$plan->name] ?? ['from-gray-500', 'to-slate-600']; @endphp

{{ $plan->display_name }}

${{ number_format($plan->price, 0) }} / {{ $plan->duration_months }} {{ Str::plural('month', $plan->duration_months) }}
  • {{ $plan->credits }} Test Credits
  • Access to all question sets
  • Detailed test results
  • Parent email notifications
@if($activeSubscription && $activeSubscription->plan_id == $plan->id) Renew Plan @else @if($activeSubscription) Upgrade Plan @else Subscribe Now @endif @endif
@endif @endforeach
@if($payments->count() > 0)

Payment History

@foreach($payments as $payment) @endforeach
Date Plan Amount Method Status
{{ $payment->created_at->format('M d, Y') }} {{ $payment->plan ? $payment->plan->display_name : 'N/A' }} ${{ number_format($payment->amount, 2) }} @if($payment->payment_method === 'stripe') @elseif($payment->payment_method === 'paypal') @endif {{ $payment->payment_method }} @if($payment->status === 'completed') Completed @elseif($payment->status === 'pending') Pending @else Failed @endif
@endif