<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class ProductSeeder extends Seeder
{
    public function run(): void
    {
        DB::table('products')->truncate();

        $produk = [
            // TOPLES REGULER
            ['TOPLES_REGULER', 'Original (O)',      'Toples Original (O)',           26000,  1],
            ['TOPLES_REGULER', 'Wijen (W)',      'Toples Wijen (W)',           31000,  2],
            ['TOPLES_REGULER', 'Cokelat',      'Toples Cokelat (C)',           34000,  3],
            ['TOPLES_REGULER', 'Cokelat Kacang',     'Toples Cokelat Kacang (CK)',          34000,  4],
            ['TOPLES_REGULER', 'Durian',      'Toples Durian (D)',           34000,  5],
            ['TOPLES_REGULER', 'Abon Sapi',      'Toples Abon Sapi (A)',           40000,  6],
            ['TOPLES_REGULER', 'Cokelat Hazelnut',      'Toples Cokelat Hazelnut (N)',           40000,  7],
            ['TOPLES_REGULER', 'Cokelat Keju',     'Toples Cokelat Keju (CC)',          40000,  8],
            ['TOPLES_REGULER', 'Keju',     'Toples Keju (CF)',          40000,  9],
            ['TOPLES_REGULER', 'Kacang',      'Toples Kacang (S)',           40000, 10],
            ['TOPLES_REGULER', 'Teh Hijau',     'Toples Teh Hijau (GT)',          40000, 11],
            ['TOPLES_REGULER', 'Cokelat Renyah', 'Toples Cokelat Renyah (OVO)',      54000, 12],
            ['TOPLES_REGULER', 'Dark Chocolate',     'Toples Dark Chocolate (DC)',          34000, 13],
            ['TOPLES_REGULER', 'GF',     'Toples GF',          48000, 14],

            // POUCH
            ['POUCH', 'P_TM',   'Pouch TM',    8000,  1],
            ['POUCH', 'P_CP',   'Pouch CP',    8000,  2],
            ['POUCH', 'P_W',    'Pouch W',    10000,  3],
            ['POUCH', 'P_C',    'Pouch C',    10000,  4],
            ['POUCH', 'P_N',    'Pouch N',    10000,  5],
            ['POUCH', 'P_CC',   'Pouch CC',   10000,  6],
            ['POUCH', 'P_CF',   'Pouch CF',   10000,  7],
            ['POUCH', 'P_W2',   'Pouch W2',   20000,  8],
            ['POUCH', 'P_C2',   'Pouch C2',   22000,  9],

            // TOPLES MINI
            ['TOPLES_MINI', 'M_N',  'Mini N',   26000, 1],
            ['TOPLES_MINI', 'M_CC', 'Mini CC',  26000, 2],
            ['TOPLES_MINI', 'M_CF', 'Mini CF',  26000, 3],
            ['TOPLES_MINI', 'M_GF', 'Mini GF',  30000, 4],
            ['TOPLES_MINI', 'M_PK', 'Mini PK',  16000, 5],
            ['TOPLES_MINI', 'M_JK', 'Mini JK',  35000, 6],

            // KASSABA
            ['KASSABA', 'KS_DH', 'Kassaba DH',       85000, 1],
            ['KASSABA', 'KS_OB', 'Kassaba Only Box',  14000, 2],

            // DAILY
            ['DAILY', 'DL_DH', 'Daily DH',  85000, 1],
            ['DAILY', 'DL_OB', 'Daily OB',  14000, 2],

            // BAG
            ['BAG', 'BAG', 'Bag', 0, 1],

            // COFFEE
            ['COFFEE', 'CF_SIG',    'Signature Coffee',  47000, 1],
            ['COFFEE', 'CF_PAPER',  'Paper LS',          0,     2],

            // COOKIES
            ['COOKIES', 'CK_EDAM',    'Edam Noir',        98000, 1],
            ['COOKIES', 'CK_HAZEL',   'Hazel Cacao',      90000, 2],
            ['COOKIES', 'CK_CLASSIC', 'Classic Butter',   75000, 3],
            ['COOKIES', 'CK_MINI3',   'Mini 3 Fu Qi',     86000, 4],
            ['COOKIES', 'CK_XIANG',   'Xiang Fu Parcel', 111000, 5],

            // IMLEK
            ['IMLEK', 'IL_FQ1',  'Fu Qi Hampers 1',      57000,  1],
            ['IMLEK', 'IL_FQ2',  'Fu Qi Hampers 2',      16000,  2],
            ['IMLEK', 'IL_FQ3',  'Fu Qi Hampers 3',     131000,  3],
            ['IMLEK', 'IL_FQ4',  'Fu Qi Hampers 4',     135000,  4],
            ['IMLEK', 'IL_CEO',  'Fu Qi Cheongsam',     289000,  5],
            ['IMLEK', 'IL_XIANG','Xiang Fu Parcel',     111000,  6],
            ['IMLEK', 'IL_M2',   'Mini 2 Fu Qi Hampers', 13000,  7],
            ['IMLEK', 'IL_FORT', 'Fortune Hampers',      26000,  8],
            ['IMLEK', 'IL_HJAN', 'Huang Jia Hampers',    15000,  9],

            // STARTERPACK PLUS
            ['STARTERPACK', 'SP_FORT',  'Fortune Hampers',      91000, 1],
            ['STARTERPACK', 'SP_HJIA',  'Huang Jia Hampers',    79000, 2],
            ['STARTERPACK', 'SP_FQ2',   'Fu Qi Hampers 2',      81000, 3],
            ['STARTERPACK', 'SP_10P',   '10 Pouch+10 Kepingan', 92000, 4],
            ['STARTERPACK', 'SP_M3',    'Mini 3 Fu Qi',         15000, 5],
            ['STARTERPACK', 'SP_XIANG', 'Xiang Fu Parcel',       6000, 6],
            ['STARTERPACK', 'SP_FQ3',   'Fu Qi Hampers 3',      26000, 7],
            ['STARTERPACK', 'SP_FQ4',   'Fu Qi Hampers 4',      18000, 8],

            // ONLY BOX IMLEK
            ['ONLY_BOX', 'OB_CEO',  'Fu Qi Cheongsam',      170000, 1],
            ['ONLY_BOX', 'OB_FQ1',  'Fu Qi Hampers 1',       18000, 2],
            ['ONLY_BOX', 'OB_M2',   'Mini 2 Fu Qi Hampers',  13000, 3],
            ['ONLY_BOX', 'OB_FORT', 'Fortune Hampers',        26000, 4],
            ['ONLY_BOX', 'OB_HJIA', 'Huang Jia Hampers',      15000, 5],
            ['ONLY_BOX', 'OB_FQ2',  'Fu Qi Hampers 2',        16000, 6],

            // KUE KERANJANG
            ['KUE_KERANJANG', 'KK_STD',  'Kue Keranjang',         31000, 1],
            ['KUE_KERANJANG', 'KK_HAMP', 'Hampers Kue Keranjang', 33000, 2],

            // FU QI COLLECTION
            ['FU_QI', 'FQ_COL3', 'Fu Qi Hampers 3', 189000, 1],
            ['FU_QI', 'FQ_COL4', 'Fu Qi Hampers 4', 332000, 2],

            // LEBARAN
            ['LEBARAN', 'LB_PK1',  'PK 1',     57000,  1],
            ['LEBARAN', 'LB_BRK',  'Berkah',   79000,  2],
            ['LEBARAN', 'LB_FTR',  'Fitri',    85000,  3],
            ['LEBARAN', 'LB_PM3',  'PK Mini 3',86000,  4],
            ['LEBARAN', 'LB_PK2',  'PK 2',     81000,  5],
            ['LEBARAN', 'LB_PARC', 'PK Parcel',111000, 6],
            ['LEBARAN', 'LB_PM4',  'PK Mini 4',112000, 7],
            ['LEBARAN', 'LB_PK3',  'PK 3',     131000, 8],
            ['LEBARAN', 'LB_PK4',  'PK 4',     135000, 9],
            ['LEBARAN', 'LB_EXC',  'PK EXC',   315000, 10],

            // BUNDLING PKC
            ['BUNDLING', 'BN_PK4',  'Bundling PK 4',          17000,  1],
            ['BUNDLING', 'BN_EXC',  'Bundling PK EXC',        169000, 2],
            ['BUNDLING', 'BN_SP3',  'PK Special P3',          189000, 3],
            ['BUNDLING', 'BN_SP4',  'PK Special P4',          332000, 4],
            ['BUNDLING', 'BN_BHC',  'Berkah Hampers Cookies', 265000, 5],
            ['BUNDLING', 'BN_VAL',  'Valentine',              120000, 6],
            ['BUNDLING', 'BN_NBK',  'New Berkah',              82000, 7],

            // ONLY LEBARAN
            ['ONLY_LEBARAN', 'OL_PK1',  'Only Lebaran PK 1',     17000,  1],
            ['ONLY_LEBARAN', 'OL_BRK',  'Only Lebaran Berkah',   14000,  2],
            ['ONLY_LEBARAN', 'OL_FTR',  'Only Lebaran Fitri',    19000,  3],
            ['ONLY_LEBARAN', 'OL_PM3',  'Only Lebaran PK Mini 3',14000,  4],
            ['ONLY_LEBARAN', 'OL_PK2',  'Only Lebaran PK 2',     15000,  5],
            ['ONLY_LEBARAN', 'OL_PARC', 'Only Lebaran PK Parcel', 5000,  6],
            ['ONLY_LEBARAN', 'OL_PM4',  'Only Lebaran PK Mini 4',14000,  7],
            ['ONLY_LEBARAN', 'OL_PK3',  'Only Lebaran PK 3',     25000,  8],
            ['ONLY_LEBARAN', 'OL_PK4',  'Only Lebaran PK 4',    135000,  9],
            ['ONLY_LEBARAN', 'OL_EXC',  'Only Lebaran PK EXC',  315000, 10],

            // WAN SHI
            ['WAN_SHI', 'WS_SFQ', 'Special Fu Qi',   306500, 1],
            ['WAN_SHI', 'WS_PBT', 'Premium Buttery',  265000, 2],
        ];

        foreach ($produk as $p) {
            DB::table('products')->insert([
                'kategori' => $p[0],
                'kode'     => $p[1],
                'nama'     => $p[2],
                'harga'    => $p[3],
                'urutan'   => $p[4],
                'aktif'    => true,
                'created_at' => now(),
                'updated_at' => now(),
            ]);
        }
    }
}
