@php
$isEnLocale = str_starts_with(strtolower((string) config('app.locale', env('APP_LOCALE', 'tr'))), 'en');
@endphp
{{-- Abonelik Türü Sekmeleri --}}
@if ($isSubscriber)
{{ t('subscription.already_active') }}
@else
{{-- Plan Cards (Tam Abonelik) --}}
@foreach ($plans as $plan)
@php
$isEn = str_starts_with(strtolower((string) config('app.locale', env('APP_LOCALE', 'tr'))), 'en');
$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
? ($isEn ? 'month' : 'ay')
: ($plan['months'] . ' ' . ($isEn ? 'months' : 'ay'));
$desc = match (true) {
$plan['months'] === 1 => t('beginner-plan'),
$plan['months'] === 6 => t('most-popular-plan'),
default => t('pro-plan'),
};
$colClass = $isPop ? 'plan-col--featured' : 'plan-col--normal';
@endphp
{{-- Top row --}}
@if ($isPop)
{{ t('most-popular') }}
@endif
{{-- Plan name + desc --}}
{{ $plan['label'] }}
{{ $desc }}
{{-- Price --}}
{{ number_format($plan['price'], 0, ',', '.') }}
{{ t('currency') }}
@if ($hasDsc)
{{ number_format($plan['price_normal'], 0, ',', '.') }} {{ t('currency') }}
@endif
@if ($mEq)
{{ t('monthly') }} ~
{{ number_format($mEq, 0, ',', '.') }} {{ t('currency') }}
@endif
{{-- Features --}}
-
{{ $plan['months'] }}
{{ t('unlimited-map-access-per-month') }}
-
{{ t('features.birth-relationship-yearly') }}
-
{{ t('features.unlimited-maps') }}
@if ($package)
-
{{ $package->name }} —
{{ number_format($package->word_limit) }} {{ t('token') }}
@endif
{{-- CTA --}}
@endforeach
@endif
{{-- /#pane-plan-full --}}
@if ($isSubscriber)
{{ t('subscription.already_active') }}
@else
{{-- Plan Cards (Tokensiz Abonelik) --}}
@foreach ($tokenlessPlans as $plan)
@php
$isEn = $isEnLocale;
$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
{{-- Top row --}}
@if ($isPop)
{{ t('most-popular') }}
@endif
{{-- Plan name + desc --}}
{{ $plan['label'] }}
{{ $isEn ? 'Full map/report access, tokens purchased separately.' : 'Tüm harita/rapor erişimi dahil, Token ayrıca satın alınır.' }}
{{-- Price --}}
{{ number_format($plan['price'], 0, ',', '.') }}
{{ t('currency') }}
@if ($hasDsc)
{{ number_format($plan['price_normal'], 0, ',', '.') }} {{ t('currency') }}
@endif
@if ($mEq)
{{ t('monthly') }} ~
{{ number_format($mEq, 0, ',', '.') }} {{ t('currency') }}
@endif
{{-- Features --}}
-
{{ $plan['months'] }}
{{ t('unlimited-map-access-per-month') }}
-
{{ t('features.birth-relationship-yearly') }}
-
{{ t('features.unlimited-maps') }}
-
{{ $isEn ? 'No tokens included — buy separately for AI features' : 'Token dahil değil — AI özellikleri için ayrıca satın alınır' }}
{{-- CTA --}}
@endforeach
@endif
{{-- /#pane-plan-tokenless --}}
{{-- Puan Paketleri --}}
@if (($userCredits['chat_words'] ?? 0) > 0)
{{ t('current-balance') }}: {{ number_format($userCredits['chat_words']) }}
@endif
{{-- /#pane-plan-points --}}
{{-- Yorum Paketleri (Single Token Products) --}}
{{-- /#pane-plan-comments --}}
{{ $isEnLocale ? 'Reading Packages' : 'Yorum Paketleri' }}
{{ $isEnLocale ? 'Get the reading you want' : 'İstediğiniz yorumu alın' }}