<?php

namespace App\Http\Controllers;

use Inertia\Inertia;

class VipRulesController extends Controller
{
    public function index()
    {
        $vipRules = [
            [
                'level' => 0,
                'name' => 'VIP0',
                'badge' => 'Platform Default',
                'badgeColor' => 'yellow',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => 'Not Required',
                    'validBet' => 'Not Required',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 1,
                'name' => 'VIP1',
                'badge' => null,
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => 'Not Required',
                    'validBet' => '2,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 2,
                'name' => 'VIP2',
                'badge' => null,
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => 'Not Required',
                    'validBet' => '10,000',
                ],
                'retention' => [
                    'lastRecharge' => '100',
                    'lastValidBet' => '1,000',
                ],
            ],
            [
                'level' => 3,
                'name' => 'VIP3',
                'badge' => null,
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => 'Not Required',
                    'validBet' => '30,000',
                ],
                'retention' => [
                    'lastRecharge' => '200',
                    'lastValidBet' => '2,000',
                ],
            ],
            [
                'level' => 4,
                'name' => 'VIP4',
                'badge' => null,
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '4,000',
                    'validBet' => '60,000',
                ],
                'retention' => [
                    'lastRecharge' => '300',
                    'lastValidBet' => '3,000',
                ],
            ],
            [
                'level' => 5,
                'name' => 'VIP5',
                'badge' => 'Recommended',
                'badgeColor' => 'green',
                'upgrade' => [
                    'recharges' => '2',
                    'amount' => '8,000',
                    'validBet' => '100,000',
                ],
                'retention' => [
                    'lastRecharge' => '500',
                    'lastValidBet' => '5,000',
                ],
            ],
            [
                'level' => 6,
                'name' => 'VIP6',
                'badge' => null,
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '20,000',
                    'validBet' => '300,000',
                ],
                'retention' => [
                    'lastRecharge' => '500',
                    'lastValidBet' => '5,000',
                ],
            ],
            [
                'level' => 7,
                'name' => 'VIP7',
                'badge' => null,
                'upgrade' => [
                    'recharges' => '4',
                    'amount' => '30,000',
                    'validBet' => '600,000',
                ],
                'retention' => [
                    'lastRecharge' => '500',
                    'lastValidBet' => '5,000',
                ],
            ],
            [
                'level' => 8,
                'name' => 'VIP8',
                'badge' => null,
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '60,000',
                    'validBet' => '1,000,000',
                ],
                'retention' => [
                    'lastRecharge' => '500',
                    'lastValidBet' => '5,000',
                ],
            ],
            [
                'level' => 9,
                'name' => 'VIP9',
                'badge' => null,
                'upgrade' => [
                    'recharges' => '5',
                    'amount' => '100,000',
                    'validBet' => '3,000,000',
                ],
                'retention' => [
                    'lastRecharge' => '500',
                    'lastValidBet' => '5,000',
                ],
            ],
            [
                'level' => 10,
                'name' => 'VIP10',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '400,000',
                    'validBet' => '6,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 11,
                'name' => 'VIP11',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => '6',
                    'amount' => '500,000',
                    'validBet' => '10,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 12,
                'name' => 'VIP12',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '800,000',
                    'validBet' => '13,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 13,
                'name' => 'VIP13',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => '7',
                    'amount' => '1,000,000',
                    'validBet' => '16,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 14,
                'name' => 'VIP14',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '1,200,000',
                    'validBet' => '20,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 15,
                'name' => 'VIP15',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => '8',
                    'amount' => '1,400,000',
                    'validBet' => '23,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 16,
                'name' => 'VIP16',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '1,600,000',
                    'validBet' => '27,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 17,
                'name' => 'VIP17',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => '9',
                    'amount' => '1,800,000',
                    'validBet' => '30,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 18,
                'name' => 'VIP18',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '2,000,000',
                    'validBet' => '35,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 19,
                'name' => 'VIP19',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => '10',
                    'amount' => '2,500,000',
                    'validBet' => '40,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 20,
                'name' => 'VIP20',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '3,000,000',
                    'validBet' => '50,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 21,
                'name' => 'VIP21',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => '12',
                    'amount' => '4,000,000',
                    'validBet' => '60,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 22,
                'name' => 'VIP22',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '5,000,000',
                    'validBet' => '75,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 23,
                'name' => 'VIP23',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => '15',
                    'amount' => '6,000,000',
                    'validBet' => '90,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 24,
                'name' => 'VIP24',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '8,000,000',
                    'validBet' => '110,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 25,
                'name' => 'VIP25',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => '20',
                    'amount' => '10,000,000',
                    'validBet' => '130,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 26,
                'name' => 'VIP26',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '12,000,000',
                    'validBet' => '150,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 27,
                'name' => 'VIP27',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => '25',
                    'amount' => '15,000,000',
                    'validBet' => '180,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 28,
                'name' => 'VIP28',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '18,000,000',
                    'validBet' => '210,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 29,
                'name' => 'VIP29',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => '30',
                    'amount' => '20,000,000',
                    'validBet' => '250,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
            [
                'level' => 30,
                'name' => 'VIP30',
                'badge' => 'Super King',
                'badgeColor' => 'blue',
                'upgrade' => [
                    'recharges' => 'Not Required',
                    'amount' => '30,000,000',
                    'validBet' => '300,000,000',
                ],
                'retention' => [
                    'lastRecharge' => 'Not Required',
                    'lastValidBet' => 'Not Required',
                ],
            ],
        ];

        return Inertia::render('CkComponents/Vip/Rules', [
            'vipRules' => $vipRules,
        ]);
    }
}