@extends('frontend.main_master') @section('body-class', 'panel-page') @section('no-header', true) @section('no-footer', true) @section('title', t('subscribe', 'Subscribe') . ' - ' . t('site-title', 'Astro Wise')) @push('styles') @endpush @section('content')
{{-- Toasts --}}
@if (session('success')) @endif @if (session('error')) @endif
{{-- Cart Link (Top Right) --}} {{-- Hero Title --}}

{{ t('select-plan', 'Choose Your Plan') }}

{{-- Subscription Variant Tabs --}}
@if ($isSubscriber)

{{ t('subscription.already_active', 'Your subscription is currently active.') }}

@else {{-- Plan Cards (Full Subscription) --}}
@foreach ($plans as $plan) @php $package = $plan['package'] ?? null; $isPop = $plan['key'] === $featuredFullPlanKey; $hasDsc = $plan['price_normal'] > $plan['price']; $mEq = $plan['months'] > 1 ? round($plan['price'] / $plan['months']) : null; $periodText = $plan['months'] === 1 ? 'month' : ($plan['months'] . ' months'); $desc = match (true) { $plan['months'] === 1 => t('beginner-plan', 'Flexible start for curious explorers'), $plan['months'] === 6 => t('most-popular-plan', 'Best value for astrology enthusiasts'), default => t('pro-plan', 'Comprehensive access for professional astrologers'), }; $colClass = $isPop ? 'plan-col--featured' : 'plan-col--normal'; @endphp
@endforeach
@endif
{{-- /#pane-plan-full --}}
@if ($isSubscriber)

{{ t('subscription.already_active', 'Your subscription is currently active.') }}

@else {{-- Plan Cards (Tokenless Subscription) --}}
@foreach ($tokenlessPlans as $plan) @php $isPop = $plan['key'] === $featuredTokenlessPlanKey; $hasDsc = $plan['price_normal'] > $plan['price']; $mEq = $plan['months'] > 1 ? round($plan['price'] / $plan['months']) : null; $colClass = $isPop ? 'plan-col--featured' : 'plan-col--normal'; @endphp
@endforeach
@endif
{{-- /#pane-plan-tokenless --}} {{-- Token Packages --}}
@csrf
@foreach ($packages as $pkg) @php $pkgWordLimit = (int) ($pkg->word_limit ?? 0); $isPkgPop = !empty($pkg->is_featured); @endphp
@endforeach
{{-- Action bar --}}
{{ t('select-package-to-cart', 'Select a token package') }}
{{ t('package-cart-description', 'Add selected token package to your cart') }}
{{ t('go-to-cart', 'My Cart') }}
{{-- /#pane-plan-points --}} {{-- Reading Packages (Single Token Products) --}}
@if (!empty($commentTokenProducts))
Reading Packages

Purchase individual comprehensive AI interpretations

@foreach (['natal' => t('natal-comment', 'Natal Chart Reading'), 'relationship' => t('relationship-comment', 'Synastry Compatibility Reading'), 'annual' => t('annual-comment', 'Solar Return Annual Reading')] as $commentType => $commentLabel) @php $prod = $commentTokenProducts[$commentType] ?? null; if (!$prod) { continue; } @endphp
{{ $commentLabel }}
{{ number_format($prod['price'], 0, '.', ',') }} {{ t('currency', '$') }}
@csrf
@endforeach
@endif
{{-- /#pane-plan-comments --}}
{{-- /.tab-content --}}
@endsection