<?php
/**
 * Premium extension catalog source.
 *
 * @package FleekDash\Services
 */

namespace FleekDash\Services;

defined('ABSPATH') || exit;

class PremiumExtensionCatalogService
{
    /**
     * @return array<int, array<string, mixed>>
     */
    public static function getAll(): array
    {
        $catalog = \get_option('fleekdash_premium_extensions_catalog', null);
        if (is_array($catalog)) {
            return $catalog;
        }

        return [
            [
                'id' => 'form-flow-builder',
                'name' => 'Form Flow Builder',
                'description' => 'Build advanced multi-step form flows and automations for client sites.',
                'category' => 'app',
                'icon' => 'layers',
                'mode' => 'upcoming',
                'feature_key' => 'extension:form-flow-builder',
                'required_tier' => 'Agency',
            ],
            [
                'id' => 'brand-kit',
                'name' => 'Brand Kit',
                'description' => 'Centralize colors, typography, client assets, and reusable brand presets.',
                'category' => 'app',
                'icon' => 'sparkles',
                'mode' => 'upcoming',
                'feature_key' => 'extension:brand-kit',
                'required_tier' => 'Agency',
            ],
            [
                'id' => 'login-frontend-kit',
                'name' => 'Login Frontend Kit',
                'description' => 'Create polished login, onboarding, and account screens for WordPress projects.',
                'category' => 'plugin',
                'icon' => 'users',
                'mode' => 'upcoming',
                'feature_key' => 'extension:login-frontend-kit',
                'required_tier' => 'Agency Unlimited',
            ],
            [
                'id' => 'gmail-inbox',
                'name' => 'Gmail Inbox',
                'description' => 'Bring client communication into FleekDash with a focused Gmail inbox.',
                'category' => 'app',
                'icon' => 'mail',
                'mode' => 'upcoming',
                'feature_key' => 'extension:gmail-inbox',
                'required_tier' => 'Agency',
            ],
            [
                'id' => 'fleek-store',
                'name' => 'Fleek Store',
                'description' => 'Sell packaged services, micro SaaS offers, and client-ready add-ons.',
                'category' => 'app',
                'icon' => 'shopping-cart',
                'mode' => 'upcoming',
                'feature_key' => 'extension:fleek-store',
                'required_tier' => 'Enterprise',
            ],
        ];
    }
}
