<?php

return [
    'plans' => [
        'starter' => [
            'name' => 'Starter',
            'price' => 0.00,
            'currency' => 'USD',
            'badge' => 'Always Free',
            'free' => true,
            'stores' => 1,
            'products' => 150,
            'devices' => 1,
            'storage_gb' => 5,
            'api_keys' => 2,
            'api_rate_limit_per_minute' => 300,
            'api_rate_limit_per_day' => 10000,
            'modules' => [
                'products',
                'categories',
                'customers',
                'sales',
                'invoices',
                'quotations',
                'expenses',
                'basic_stock',
                'reports',
                'payment_methods',
                'notifications',
                'profile',
                'subscription',
                'stores',
                'suppliers',
                'purchases',
                'cash_register',
                'ledger',
            ],
            'summary' => '1 store, 150 products',
        ],
        'growth' => [
            'name' => 'Growth',
            'price' => 1.99,
            'pricing' => [
                'monthly'   => 1.99,
                'quarterly' => 5.49,
                'biannual'  => 10.99,
                'yearly'    => 19.99,
                'one-time'  => (float) env('GROWTH_ONETIME_PRICE', 99.99),
            ],
            'currency' => 'USD',
            'badge' => 'Most Popular',
            'stores' => 5,
            'products' => 999,
            'devices' => 2,
            'storage_gb' => 20,
            'api_keys' => 5,
            'api_rate_limit_per_minute' => 240,
            'api_rate_limit_per_day' => 30000,
            'modules' => [
                'products',
                'categories',
                'customers',
                'sales',
                'invoices',
                'quotations',
                'expenses',
                'basic_stock',
                'reports',
                'payment_methods',
                'notifications',
                'profile',
                'subscription',
                'suppliers',
                'purchases',
                'inventory',
                'ledger',
                'advanced_reports',
                'cash_register',
                'stores',
                'settings',
                'backup',
            ],
            'summary' => '5 stores, 999 products',
        ],
        'pro' => [
            'name' => 'Pro',
            'price' => 3.99,
            'pricing' => [
                'monthly'   => 3.99,
                'quarterly' => 11.99,
                'biannual'  => 23.99,
                'yearly'    => 47.99,
                'one-time'  => (float) env('PRO_ONETIME_PRICE', 199.99),
            ],
            'currency' => 'USD',
            'badge' => 'Best Value',
            'stores' => 999,
            'products' => 999,
            'devices' => 4,
            'storage_gb' => 100,
            'api_keys' => 25,
            'api_rate_limit_per_minute' => 600,
            'api_rate_limit_per_day' => 100000,
            'modules' => [
                'products',
                'categories',
                'customers',
                'sales',
                'invoices',
                'quotations',
                'expenses',
                'basic_stock',
                'reports',
                'payment_methods',
                'notifications',
                'profile',
                'subscription',
                'suppliers',
                'purchases',
                'inventory',
                'ledger',
                'advanced_reports',
                'cash_register',
                'stores',
                'settings',
                'backup',
                'analytics',
                'images',
                'customization',
                'multi_store',
                'priority_support',
            ],
            'summary' => 'Unlimited stores & products',
        ],
    ],
    'sync_table_modules' => [
        'stores'             => 'stores',
        'categories'         => 'categories',
        'products'           => 'products',
        'customers'          => 'customers',
        'customer_ledger'    => 'ledger',
        'orders'             => 'sales',
        'order_items'        => 'sales',
        'expenses'           => 'expenses',
        'suppliers'          => 'suppliers',
        'purchases'          => 'purchases',
        'purchase_items'     => 'purchases',
        'quotations'         => 'quotations',
        // server-side canonical names
        'ledger_entries'     => 'ledger',
        'cash_registers'     => 'cash_register',
        // Flutter app names (aliases accepted from client)
        'ledger'             => 'ledger',
        'cash_register'      => 'cash_register',
        'stock_adjustments'  => 'inventory',
        'payment_methods'    => 'payment_methods',
    ],
];
