<?php
defined('BASEPATH') or exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Manual Withdrawal Methods
|--------------------------------------------------------------------------
| No admin UI / DB table — just edit this array to add, edit, or disable
| a method. Never reuse or reorder an id once it has gone live: ids are
| stored on old withdrawal_history rows.
|
| GLOBAL RATE (see Withdraw::COIN_TO_USD_RATE in the controller):
|   1000 coins = $1.00   (1 coin = $0.001)
|
| NOTE: this single global rate is what makes "100 Diamonds / 60 UC /
| $1 of any crypto = 1000 coins" all true at once — it's applied the
| same way to every method (fixed packages AND variable crypto amounts)
| in withdraw.php via $settings['currency_rate']. Nothing below needs
| to change per-method for that to hold; just make sure
| $settings['currency_rate'] is set to 0.001 wherever your settings
| are stored/edited. If it's currently a different value, that's the
| only place to fix — not this file.
|
| FIELD REFERENCE
| id                 -> unique integer, never reuse/reorder once live
| name               -> display name on the card, e.g. "100 Diamonds"
| code               -> short code shown under the name
| category           -> 'games' | 'crypto' | 'cash'
| group              -> groups several methods under one clickable tile
|                       (e.g. all Free Fire tiers share group 'freefire').
|                       Leave null for methods that should show directly
|                       as their own card (this is how Crypto behaves).
| group_label        -> display name of the tile, e.g. "Free Fire Diamonds"
| group_image        -> image for the tile, relative to base_url()
| status             -> 1 = visible/active, 0 = hidden
| fixed              -> true  = fixed-quantity package. The coin cost is
|                                locked to `minimum_withdrawal` (converted
|                                to coins) and the user cannot change it —
|                                they just pick the package and confirm.
|                       false = normal variable-amount withdrawal, user
|                                types how many coins to withdraw (old
|                                behaviour, still used by Crypto & the
|                                Visa/PayPal "Other Amount" tiers).
| fixed_qty          -> quantity delivered for a fixed package (e.g. 100)
| fixed_unit_label   -> unit shown next to fixed_qty (e.g. "Diamonds","UC")
|                       Use null for cash packages priced directly in USD.
| price              -> USD value of 1 unit of this currency (used for the
|                       "you will receive" preview on variable methods,
|                       and kept for reference/back-compat on fixed ones)
| minimum_withdrawal -> USD-equivalent minimum withdrawal amount. For a
|                       FIXED package this is also the exact/only amount.
| wallet             -> processor used in Withdraw::withdraw():
|                       'faucetpay' | 'expresscrypto' | 'payeer' | 'custom'
|                       Everything below uses 'custom': balance is deducted
|                       and a pending request is logged locally — no
|                       external API call, you pay it out yourself.
| image              -> item image, relative to base_url(). IMPORTANT: give
|                       every single id its own file — even entries that
|                       share a group (e.g. each Free Fire diamond tier)
|                       should point at a distinct image so each card on
|                       the page looks unique instead of repeating one
|                       generic icon. The paths below are placeholders —
|                       drop your real files at these paths and the cards
|                       will pick them up automatically (each card element
|                       renders straight from this per-id 'image' field).
| api / token / account_number / api_id
|                     -> processor credentials, only needed if you switch
|                       a method's wallet away from 'custom'
*/

return [

    // =================================================================
    // GAMES
    // =================================================================

    // ---------------- Free Fire Diamonds ----------------------------
    // group tile cover -> img/freefire.png (same file for every tier's
    // group_image, since they all share the one 'freefire' group tile).
    // Per-tier card images below are still separate placeholders —
    // swap those in individually whenever you have real tier art.
    100 => [
        'name' => '100 Diamonds', 'code' => 'FF-100', 'category' => 'games',
        'group' => 'freefire', 'group_label' => 'Free Fire Diamonds',
        'group_image' => 'img/freefire.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 100, 'fixed_unit_label' => 'Diamonds',
        'price' => 1, 'minimum_withdrawal' => 1, 'wallet' => 'custom',
        'image' => 'img/freefire.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    101 => [
        'name' => '200 Diamonds', 'code' => 'FF-200', 'category' => 'games',
        'group' => 'freefire', 'group_label' => 'Free Fire Diamonds',
        'group_image' => 'img/freefire.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 200, 'fixed_unit_label' => 'Diamonds',
        'price' => 0.01, 'minimum_withdrawal' => 2.00, 'wallet' => 'custom',
        'image' => 'img/freefire.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    102 => [
        'name' => '300 Diamonds', 'code' => 'FF-300', 'category' => 'games',
        'group' => 'freefire', 'group_label' => 'Free Fire Diamonds',
        'group_image' => 'img/freefire.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 300, 'fixed_unit_label' => 'Diamonds',
        'price' => 0.01, 'minimum_withdrawal' => 3.00, 'wallet' => 'custom',
        'image' => 'img/freefire.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    103 => [
        'name' => '400 Diamonds', 'code' => 'FF-400', 'category' => 'games',
        'group' => 'freefire', 'group_label' => 'Free Fire Diamonds',
        'group_image' => 'img/freefire.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 400, 'fixed_unit_label' => 'Diamonds',
        'price' => 0.01, 'minimum_withdrawal' => 4.00, 'wallet' => 'custom',
        'image' => 'img/freefire.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    104 => [
        'name' => '500 Diamonds', 'code' => 'FF-500', 'category' => 'games',
        'group' => 'freefire', 'group_label' => 'Free Fire Diamonds',
        'group_image' => 'img/freefire.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 500, 'fixed_unit_label' => 'Diamonds',
        'price' => 0.01, 'minimum_withdrawal' => 5.00, 'wallet' => 'custom',
        'image' => 'img/freefire.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    105 => [
        'name' => '600 Diamonds', 'code' => 'FF-600', 'category' => 'games',
        'group' => 'freefire', 'group_label' => 'Free Fire Diamonds',
        'group_image' => 'img/freefire.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 600, 'fixed_unit_label' => 'Diamonds',
        'price' => 0.01, 'minimum_withdrawal' => 6.00, 'wallet' => 'custom',
        'image' => 'img/freefire.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    106 => [
        'name' => '700 Diamonds', 'code' => 'FF-700', 'category' => 'games',
        'group' => 'freefire', 'group_label' => 'Free Fire Diamonds',
        'group_image' => 'img/freefire.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 700, 'fixed_unit_label' => 'Diamonds',
        'price' => 0.01, 'minimum_withdrawal' => 7.00, 'wallet' => 'custom',
        'image' => 'img/freefire.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    107 => [
        'name' => '800 Diamonds', 'code' => 'FF-800', 'category' => 'games',
        'group' => 'freefire', 'group_label' => 'Free Fire Diamonds',
        'group_image' => 'img/freefire.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 800, 'fixed_unit_label' => 'Diamonds',
        'price' => 0.01, 'minimum_withdrawal' => 8.00, 'wallet' => 'custom',
        'image' => 'img/freefire.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    108 => [
        'name' => '900 Diamonds', 'code' => 'FF-900', 'category' => 'games',
        'group' => 'freefire', 'group_label' => 'Free Fire Diamonds',
        'group_image' => 'img/freefire.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 900, 'fixed_unit_label' => 'Diamonds',
        'price' => 0.01, 'minimum_withdrawal' => 9.00, 'wallet' => 'custom',
        'image' => 'img/freefire.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    109 => [
        'name' => '1000 Diamonds', 'code' => 'FF-1000', 'category' => 'games',
        'group' => 'freefire', 'group_label' => 'Free Fire Diamonds',
        'group_image' => 'img/freefire.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 1000, 'fixed_unit_label' => 'Diamonds',
        'price' => 0.01, 'minimum_withdrawal' => 10.00, 'wallet' => 'custom',
        'image' => 'img/freefire.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],

    // ---------------- PUBG Mobile UC ---------------------------------
    // group tile cover -> img/pubg.png
    120 => [
        'name' => '60 UC', 'code' => 'PUBG-60', 'category' => 'games',
        'group' => 'pubg', 'group_label' => 'PUBG Mobile UC',
        'group_image' => 'img/pubg.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 60, 'fixed_unit_label' => 'UC',
        'price' => 0.01667, 'minimum_withdrawal' => 1.00, 'wallet' => 'custom',
        'image' => 'img/pubg.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    121 => [
        'name' => '120 UC', 'code' => 'PUBG-120', 'category' => 'games',
        'group' => 'pubg', 'group_label' => 'PUBG Mobile UC',
        'group_image' => 'img/pubg.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 120, 'fixed_unit_label' => 'UC',
        'price' => 0.01667, 'minimum_withdrawal' => 2.00, 'wallet' => 'custom',
        'image' => 'img/pubg.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    122 => [
        'name' => '180 UC', 'code' => 'PUBG-180', 'category' => 'games',
        'group' => 'pubg', 'group_label' => 'PUBG Mobile UC',
        'group_image' => 'img/pubg.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 180, 'fixed_unit_label' => 'UC',
        'price' => 0.01667, 'minimum_withdrawal' => 3.00, 'wallet' => 'custom',
        'image' => 'img/pubg.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    123 => [
        'name' => '360 UC', 'code' => 'PUBG-360', 'category' => 'games',
        'group' => 'pubg', 'group_label' => 'PUBG Mobile UC',
        'group_image' => 'img/pubg.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 360, 'fixed_unit_label' => 'UC',
        'price' => 0.01667, 'minimum_withdrawal' => 5.00, 'wallet' => 'custom',
        'image' => 'img/pubg.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    124 => [
        'name' => '720 UC', 'code' => 'PUBG-720', 'category' => 'games',
        'group' => 'pubg', 'group_label' => 'PUBG Mobile UC',
        'group_image' => 'img/pubg.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 720, 'fixed_unit_label' => 'UC',
        'price' => 0.01667, 'minimum_withdrawal' => 12.00, 'wallet' => 'custom',
        'image' => 'img/pubg.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    125 => [
        'name' => '1800 UC', 'code' => 'PUBG-1800', 'category' => 'games',
        'group' => 'pubg', 'group_label' => 'PUBG Mobile UC',
        'group_image' => 'img/pubg.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => 1800, 'fixed_unit_label' => 'UC',
        'price' => 0.01667, 'minimum_withdrawal' => 30.00, 'wallet' => 'custom',
        'image' => 'img/pubg.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],

    // =================================================================
    // CRYPTO  (shown directly, no group tile)
    // =================================================================
    1 => [
        'name' => 'Bitcoin', 'code' => 'BTC', 'category' => 'crypto', 'group' => null,
        'status' => 0, // disabled — not offered right now
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 65000, 'minimum_withdrawal' => 0.50, 'wallet' => 'custom',
        'image' => 'img/btc.png',
        'api' => 'YOUR_FAUCETPAY_API_KEY', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    2 => [
        'name' => 'Litecoin', 'code' => 'LTC', 'category' => 'crypto', 'group' => null,
        'status' => 1,
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 85, 'minimum_withdrawal' => 0.50, 'wallet' => 'custom', // 500 coins = $0.50
        'image' => 'img/ltc.png',
        'api' => 'YOUR_FAUCETPAY_API_KEY', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    3 => [
        'name' => 'Dogecoin', 'code' => 'DOGE', 'category' => 'crypto', 'group' => null,
        'status' => 0,
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 0.12, 'minimum_withdrawal' => 0.10, 'wallet' => 'custom',
        'image' => 'img/doge.png',
        'api' => 'YOUR_FAUCETPAY_API_KEY', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    4 => [
        'name' => 'Ethereum', 'code' => 'ETH', 'category' => 'crypto', 'group' => null,
        'status' => 0,
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 3400, 'minimum_withdrawal' => 0.50, 'wallet' => 'custom',
        'image' => 'img/eth.png',
        'api' => 'YOUR_FAUCETPAY_API_KEY', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    5 => [
        'name' => 'Tron', 'code' => 'TRX', 'category' => 'crypto', 'group' => null,
        'status' => 0,
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 0.13, 'minimum_withdrawal' => 0.10, 'wallet' => 'custom',
        'image' => 'img/trx.png',
        'api' => 'YOUR_EXPRESSCRYPTO_API_KEY', 'token' => 'YOUR_EXPRESSCRYPTO_TOKEN', 'account_number' => '', 'api_id' => '',
    ],
    // Tether — image -> img/usdt.png
    6 => [
        'name' => 'Tether', 'code' => 'USDT', 'category' => 'crypto', 'group' => null,
        'status' => 1,
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 1.00, 'wallet' => 'custom', // 1000 coins = $1
        'image' => 'img/usdt.png',
        'api' => 'YOUR_EXPRESSCRYPTO_API_KEY', 'token' => 'YOUR_EXPRESSCRYPTO_TOKEN', 'account_number' => '', 'api_id' => '',
    ],
    // Binance Coin — image -> img/binance.png
    7 => [
        'name' => 'Binance Coin', 'code' => 'BNB', 'category' => 'crypto', 'group' => null,
        'status' => 1,
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 550, 'minimum_withdrawal' => 0.10, 'wallet' => 'custom', // 100 coins = $0.10
        'image' => 'img/binance.png',
        'api' => 'YOUR_FAUCETPAY_API_KEY', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    8 => [
        'name' => 'Polygon', 'code' => 'MATIC', 'category' => 'crypto', 'group' => null,
        'status' => 0,
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 0.55, 'minimum_withdrawal' => 0.20, 'wallet' => 'custom',
        'image' => 'img/photoswithdraw/matic.png',
        'api' => 'YOUR_EXPRESSCRYPTO_API_KEY', 'token' => 'YOUR_EXPRESSCRYPTO_TOKEN', 'account_number' => '', 'api_id' => '',
    ],

    // =================================================================
    // CASH
    // =================================================================

    // ---------------- PayPal packages ----------------------------------
    // group tile cover -> img/paypal.png
    // Same "group tile -> pick a tier" pattern as Visa below. Id 20 used
    // to be a single stand-alone (and disabled) PayPal entry; it was
    // never live, so it's safe to fold into this new group as the
    // variable "Other Amount" tier instead of leaving it orphaned.
    150 => [
        'name' => '$5 PayPal', 'code' => 'PP-5', 'category' => 'cash',
        'group' => 'paypal', 'group_label' => 'PayPal',
        'group_image' => 'img/paypal.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 5.00, 'wallet' => 'custom', // 5000 coins = $5
        'image' => 'img/paypal.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    151 => [
        'name' => '$10 PayPal', 'code' => 'PP-10', 'category' => 'cash',
        'group' => 'paypal', 'group_label' => 'PayPal',
        'group_image' => 'img/paypal.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 10.00, 'wallet' => 'custom', // 10000 coins = $10
        'image' => 'img/paypal.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    152 => [
        'name' => '$20 PayPal', 'code' => 'PP-20', 'category' => 'cash',
        'group' => 'paypal', 'group_label' => 'PayPal',
        'group_image' => 'img/paypal.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 20.00, 'wallet' => 'custom', // 20000 coins = $20
        'image' => 'img/paypal.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    20 => [
        'name' => 'Other Amount', 'code' => 'PP-OTHER', 'category' => 'cash',
        'group' => 'paypal', 'group_label' => 'PayPal',
        'group_image' => 'img/paypal.png',
        'status' => 1, 'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 2.00, 'wallet' => 'custom', // user types any amount >= $2
        'image' => 'img/paypal.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],

    21 => [
        'name' => 'Payeer', 'code' => 'RUB', 'category' => 'cash', 'group' => null,
        'status' => 0,
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 1.00, 'wallet' => 'custom',
        'image' => 'img/payeer.png',
        'api' => 'YOUR_PAYEER_SECRET', 'token' => '', 'account_number' => 'YOUR_PAYEER_ACCOUNT_NUMBER', 'api_id' => 'YOUR_PAYEER_API_ID',
    ],
    22 => [
        'name' => 'Skrill', 'code' => 'SKRILL', 'category' => 'cash', 'group' => null,
        'status' => 0,
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 3.00, 'wallet' => 'custom',
        'image' => 'img/photoswithdraw/skrill.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    23 => [
        'name' => 'Payoneer', 'code' => 'PAYONEER', 'category' => 'cash', 'group' => null,
        'status' => 0,
        'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 5.00, 'wallet' => 'custom',
        'image' => 'img/photoswithdraw/payoneer.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],

    // ---------------- Visa packages -----------------------------------
    // group tile cover -> img/visa.png
    140 => [
        'name' => '$5 Visa', 'code' => 'VISA-5', 'category' => 'cash',
        'group' => 'visa', 'group_label' => 'Visa',
        'group_image' => 'img/visa.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 5.00, 'wallet' => 'custom', // 5000 coins = $5
        'image' => 'img/visa.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    141 => [
        'name' => '$10 Visa', 'code' => 'VISA-10', 'category' => 'cash',
        'group' => 'visa', 'group_label' => 'Visa',
        'group_image' => 'img/visa.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 10.00, 'wallet' => 'custom', // 10000 coins = $10
        'image' => 'img/visa.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    142 => [
        'name' => '$20 Visa', 'code' => 'VISA-20', 'category' => 'cash',
        'group' => 'visa', 'group_label' => 'Visa',
        'group_image' => 'img/visa.png',
        'status' => 1, 'fixed' => true, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 20.00, 'wallet' => 'custom', // 20000 coins = $20
        'image' => 'img/visa.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],
    143 => [
        'name' => 'Other Amount', 'code' => 'VISA-OTHER', 'category' => 'cash',
        'group' => 'visa', 'group_label' => 'Visa',
        'group_image' => 'img/visa.png',
        'status' => 1, 'fixed' => false, 'fixed_qty' => null, 'fixed_unit_label' => null,
        'price' => 1, 'minimum_withdrawal' => 2.00, 'wallet' => 'custom', // user types any amount >= $2
        'image' => 'img/visa.png',
        'api' => '', 'token' => '', 'account_number' => '', 'api_id' => '',
    ],

];