Nâng Cấp Locket Gold Premium
Chọn gói phù hợp với bạn. Bảo hành 1 đổi 1 trong suốt thời gian sử dụng.
@php
$plans = DB::table('plans')->where('is_active', true)->orderBy('order', 'asc')->get();
@endphp
@foreach($plans as $i => $plan)
@php
$plan = (array)$plan;
$features = json_decode($plan['features'], true) ?? [];
$planColors = [
'basic' => ['primary' => '#8b5cf6', 'light' => 'rgba(139,92,246,0.15)', 'gradient' => 'linear-gradient(135deg, #8b5cf6, #a78bfa)'],
'pro' => ['primary' => '#a855f7', 'light' => 'rgba(168,85,247,0.15)', 'gradient' => 'linear-gradient(135deg, #a855f7, #c084fc)'],
'premium' => ['primary' => '#ec4899', 'light' => 'rgba(236,72,153,0.15)', 'gradient' => 'linear-gradient(135deg, #ec4899, #f472b6)'],
];
$colors = $planColors[$plan['plan_id']] ?? $planColors['basic'];
@endphp
{{-- Popular Badge --}}
@if($plan['is_popular'])
@endif
{{-- Glow effect --}}
@if($plan['is_popular'])
@endif
{{ $plan['name'] }}
{{ $plan['sold_count'] }}+ đã mua
{{ $plan['description'] }}
đ
{{ $plan['duration'] }}
@foreach($features as $feature)
-
@if($feature['included'])
@else
@endif
{{ $feature['text'] }}
@endforeach
@php
$currentPlan = Auth::check() ? Auth::user()->current_plan : null;
$isActive = ($currentPlan === $plan['plan_id']);
@endphp
@if($isActive)
@else
@endif
@endforeach