<?php

namespace App\Controllers;

class PackageController {
    private $pdo;
    private $config;
    
    public function __construct($pdo, $config) {
        $this->pdo = $pdo;
        $this->config = $config;
    }
    
    public function index() {
        $stmt = $this->pdo->query("SELECT * FROM packages WHERE is_active = 1 ORDER BY sort_order");
        $packages = $stmt->fetchAll();
        
        $theme = get_setting('default_theme', 'orbit-dark');
        include __DIR__ . '/../Views/layouts/public.php';
        include __DIR__ . '/../Views/packages/pricing.php';
        include __DIR__ . '/../Views/layouts/footer.php';
    }
}
