<?php

namespace Database\Seeders;

use App\Models\AppData;
use App\Models\GameType;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

use function PHPSTORM_META\type;

class GameTypeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        // Single Digit - General
        GameType::create([
            'name' => 'Single Digit',
            'game_type' => 'single_digit',
            'multiply_by' => 9.5,
            'type' => 'general'
        ]);

        // Jodi Digit - General
        GameType::create([
            'name' => 'Jodi Digit',
            'game_type' => 'jodi_digit',
            'multiply_by' => 95,
            'type' => 'general'
        ]);

        // Single Pana - General
        GameType::create([
            'name' => 'Single Pana',
            'game_type' => 'single_pana',
            'multiply_by' => 150,
            'type' => 'general'
        ]);

        // Double Pana - General
        GameType::create([
            'name' => 'Double Pana',
            'game_type' => 'double_pana',
            'multiply_by' => 300,
            'type' => 'general'
        ]);

        // Triple Pana - General
        GameType::create([
            'name' => 'Triple Pana',
            'game_type' => 'triple_pana',
            'multiply_by' => 900,
            'type' => 'general'
        ]);

        // Half Sangam A - General
        GameType::create([
            'name' => 'Half Sangam A',
            'game_type' => 'half_sangam_a',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);

        // Half Sangam B - General
        GameType::create([
            'name' => 'Half Sangam B',
            'game_type' => 'half_sangam_b',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);

        // Full Sangam - General
        GameType::create([
            'name' => 'Full Sangam',
            'game_type' => 'full_sangam',
            'multiply_by' => 10000,
            'type' => 'general'
        ]);

        // Single Digit - Start_line
        GameType::create([
            'name' => 'Single Digit',
            'game_type' => 'single_digit',
            'multiply_by' => 10,
            'type' => 'start_line'
        ]);

        // Single Pana - Start_line
        GameType::create([
            'name' => 'Single Pana',
            'game_type' => 'single_pana',
            'multiply_by' => 160,
            'type' => 'start_line'
        ]);

        // Double Pana - Start_line
        GameType::create([
            'name' => 'Double Pana',
            'game_type' => 'double_pana',
            'multiply_by' => 320,
            'type' => 'start_line'
        ]);

        // Triple Pana - Start_line
        GameType::create([
            'name' => 'Triple Pana',
            'game_type' => 'triple_pana',
            'multiply_by' => 1000,
            'type' => 'start_line'
        ]);

        // Jodi - Desawar
        GameType::create([
            'name' => 'Jodi',
            'game_type' => 'jodi',
            'multiply_by' => 90,
            'type' => 'desawar'
        ]);

        // Andar - Desawar
        GameType::create([
            'name' => 'Andar',
            'game_type' => 'andar',
            'multiply_by' => 9,
            'type' => 'desawar'
        ]);
        // Bahar - Desawar
        GameType::create([
            'name' => 'Bahar',
            'game_type' => 'bahar',
            'multiply_by' => 9,
            'type' => 'desawar'
        ]);
        
        // Jodi Family - General - New
        GameType::create([
            'name' => 'Jodi Family',
            'game_type' => 'jodi_family',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);

        // Pana Family Sp - General - New
        GameType::create([
            'name' => 'Pana Family Sp',
            'game_type' => 'pana_family_sp',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);

        // Sp Motor - General - New
        GameType::create([
            'name' => 'Sp Motor',
            'game_type' => 'sp_motor',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);

        // Dp Motor - General - New
        GameType::create([
            'name' => 'Dp Motor',
            'game_type' => 'dp_motor',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);

        // SpDpTp - General - New
        GameType::create([
            'name' => 'SpDpTp',
            'game_type' => 'sp_dp_tp',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);
        
        // Sp - General - New
        GameType::create([
            'name' => 'Sp',
            'game_type' => 'sp',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);
        // Dp - General - New
        GameType::create([
            'name' => 'Dp',
            'game_type' => 'dp',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);
        // Tp - General - New
        GameType::create([
            'name' => 'Tp',
            'game_type' => 'tp',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);
        
        // Pana Family Dp - General - New
        GameType::create([
            'name' => 'Pana Family Dp',
            'game_type' => 'pana_family_dp',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);
        // Pana Family Tp - General - New
        GameType::create([
            'name' => 'Pana Family Tp',
            'game_type' => 'pana_family_tp',
            'multiply_by' => 1000,
            'type' => 'general'
        ]);
    }
}
