<?php

namespace Database\Seeders;

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

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $categories = [
            ['name' => 'Micro Chains', 'slug' => 'micro-chains', 'description' => 'Premium micro gold plated chains crafted for daily elegance.'],
            ['name' => 'Bridal Set', 'slug' => 'bridal-set', 'description' => 'Royal wedding & bridal choker sets with matching earrings.'],
            ['name' => 'Anklets', 'slug' => 'anklets', 'description' => 'Traditional payals and gold finish anklets.'],
            ['name' => 'Bangles', 'slug' => 'bangles', 'description' => 'Intricate daily wear and bridal bangles.'],
            ['name' => 'Earrings & Jhumkas', 'slug' => 'earrings-jhumkas', 'description' => 'Temple work and AD stone handcrafted jhumkas.'],
            ['name' => 'Impon Products', 'slug' => 'impon-products', 'description' => 'Authentic Five-Metal Panchaloha Impon Jewellery.'],
        ];

        foreach ($categories as $cat) {
            Category::updateOrCreate(['slug' => $cat['slug']], $cat);
        }
    }
}
