<?php

namespace App\Http\Controllers\Public;

use App\Http\Controllers\Controller;
use App\Models\Plan;
use Illuminate\Http\Request;

class SubscriptionController extends Controller
{
    public function plans()
    {
        // Fetch active plans
        $plans = Plan::active()->orderBy('price_inr')->get();
        
        // Fetch active promotion packages
        $promotionPackages = \App\Models\PromotionPackage::active()
            ->orderBy('price')
            ->get();
        
        return view('public.subscription.plans', compact('plans', 'promotionPackages'));
    }
}
