<?php

namespace Database\Seeders;

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

class CategorySeeder extends Seeder
{
    public function run(): void
    {
        $categories = [
            // Furniture Categories
            [
                'name' => 'Medium Density Fibreboard (MDF)',
                'slug' => 'mdf',
                'description' => 'Versatile MDF suitable for kitchens, furniture, shelving, decorative moulding and doors.',
                'type' => 'furniture',
                'order' => 1,
                'is_active' => true,
            ],
            [
                'name' => 'Melamine Faced Chipboard (MFC)',
                'slug' => 'melamine-faced-chipboard',
                'description' => 'High-quality melamine faced chipboard for furniture and interior design.',
                'type' => 'furniture',
                'order' => 2,
                'is_active' => true,
            ],
            [
                'name' => 'Synchronized MDF',
                'slug' => 'synchronized-mdf',
                'description' => 'Premium synchronized MDF with realistic wood grain texture.',
                'type' => 'furniture',
                'order' => 3,
                'is_active' => true,
            ],
            [
                'name' => 'Super High Gloss',
                'slug' => 'super-high-gloss',
                'description' => 'Ultra-high gloss finish boards for modern furniture designs.',
                'type' => 'furniture',
                'order' => 4,
                'is_active' => true,
            ],
            [
                'name' => 'Edgeroll',
                'slug' => 'edgeroll',
                'description' => 'Edge banding solutions for professional furniture finishing.',
                'type' => 'furniture',
                'order' => 5,
                'is_active' => true,
            ],
            [
                'name' => 'MDF Wall Panel',
                'slug' => 'mdf-wall-panel',
                'description' => 'Decorative MDF wall panels for interior design.',
                'type' => 'furniture',
                'order' => 6,
                'is_active' => true,
            ],

            // Building Products Categories
            [
                'name' => 'Oriented Strand Board (OSB)',
                'slug' => 'osb',
                'description' => 'Engineered wood panel for construction and building projects.',
                'type' => 'building',
                'order' => 7,
                'is_active' => true,
            ],
            [
                'name' => 'Film Faced Plywood (Marine Plywood)',
                'slug' => 'marine-plywood',
                'description' => 'Water-resistant plywood for construction and marine applications.',
                'type' => 'building',
                'order' => 8,
                'is_active' => true,
            ],
            [
                'name' => 'Construction Products',
                'slug' => 'construction-products',
                'description' => 'Complete range of construction materials and accessories.',
                'type' => 'building',
                'order' => 9,
                'is_active' => true,
            ],
        ];

        foreach ($categories as $category) {
            Category::create($category);
        }
    }
}