<?php

namespace Database\Seeders;

use App\Models\Category;
use App\Models\Product;
use Illuminate\Database\Seeder;

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $a = Category::create([
            "name" => [
                "id" => "Seri Memasak Sendiri",
                "en" => "Self Cooking Series",
                "kr" => "셀프 쿠킹 시리즈",
            ],
            "description" => [
                "id" =>
                    "Teknologi memasak mandiri pertama di Indonesia yang membantu Anda makan di mana saja dan kapan saja dengan nyaman.",
                "en" =>
                    "1st self cooking technology in Indonesia to help you eat anywhere & anytime comfortably.",
                "kr" =>
                    "인도네시아 최초의 셀프 쿠킹 기술로 언제 어디서나 편안하게 식사할 수 있습니다.",
            ],
            "thumbnail" => "seeder/1.png",
        ]);

        $a->products()->create([
            "name" => [
                "id" => "Sumsum Tulang",
                "en" => "Bone Marrow",
                "kr" => "골수",
            ],
            "description" => [
                "id" => "Bihun dengan sari kaldu yang gurih",
                "en" => "Rice noodle with savory broth essence",
                "kr" => "고소한 육수 에센스가 들어간 쌀국수",
            ],
            "thumbnail" => "seeder/1.png",
        ]);

        $a->products()->create([
            "name" => [
                "id" => "Budae Jjigae",
                "en" => "Budae Jjigae",
                "kr" => "Budae Jjigae",
            ],
            "description" => [
                "id" => "Mie gandum dengan saus khas Korea.",
                "en" => "Wheat noodle with korean special sauce.",
                "kr" => "한국식 특제 소스를 곁들인 밀면.",
            ],
            "thumbnail" => "seeder/2.png",
        ]);

        $a->products()->create([
            "name" => [
                "id" => "Kari Daging Sapi",
                "en" => "Beef Curry",
                "kr" => "비프 커리",
            ],
            "description" => [
                "id" => "Mie gandum dengan campuran rempah-rempah aromatik",
                "en" => "Wheat noodle with Aromatic spice blend",
                "kr" => "향긋한 향신료 블렌드를 곁들인 밀면",
            ],
            "thumbnail" => "seeder/3.png",
        ]);

        $a->products()->create([
            "name" => [
                "id" => "Nasi Kukus Kari Daging Sapi",
                "en" => "Steam Rice Beef Curry",
                "kr" => "스팀 라이스 비프 커리",
            ],
            "description" => [
                "id" => "Mie gandum dengan campuran rempah-rempah aromatik",
                "en" => "Wheat noodle with Aromatic spice blend",
                "kr" => "향긋한 향신료 블렌드를 곁들인 밀면",
            ],
            "thumbnail" => "seeder/4.png",
        ]);

        $b = Category::create([
            "name" => [
                "id" => "Seri Gandum",
                "en" => "Wheat Series",
                "kr" => "셀프 쿠킹 시리즈",
            ],
            "description" => [
                "id" => "Koleksi cita rasa asli Korea dengan mie gandum tebal",
                "en" =>
                    "A collection of real Korean flavor with thick wheat noodle",
                "kr" => "두툼한 밀면으로 진정한 한국의 맛을 담았습니다.",
            ],
            "thumbnail" => "seeder/6.png",
        ]);

        Product::factory()
            ->count(4)
            ->create([
                "category_id" => $b->id,
            ]);

        $c = Category::create([
            "name" => [
                "id" => "Seri Beras",
                "en" => "Rice Series",
                "kr" => "라이스 시리즈",
            ],
            "description" => [
                "id" =>
                    "Bihun bebas gluten yang dipadukan dengan rasa spesial kami.",
                "en" =>
                    "Glutten-free rice noodle combined with our special flavours.",
                "kr" => "글루텐 프리 쌀국수에 특별한 풍미를 더했습니다.",
            ],
            "thumbnail" => "seeder/9.png",
        ]);

        Product::factory()
            ->count(4)
            ->create([
                "category_id" => $c->id,
            ]);
    }
}
