<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\FeatureCategory;
use Illuminate\Support\Str;

class FeatureCategorySeeder extends Seeder
{
    public function run(): void
    {
        $categories = [
            [
                'name' => 'Branding',
                'slug' => 'branding',
                'description' => 'Branding methods and techniques for promotional items',
                'icon' => 'brand',
                'is_active' => true,
                'sort_order' => 1,
            ],
            [
                'name' => 'Printing Finish',
                'slug' => 'printing-finish',
                'description' => 'Finishing options for printed materials',
                'icon' => 'finish',
                'is_active' => true,
                'sort_order' => 2,
            ],
            [
                'name' => 'Lamination',
                'slug' => 'lamination',
                'description' => 'Lamination types for printed materials',
                'icon' => 'laminate',
                'is_active' => true,
                'sort_order' => 3,
            ],
            [
                'name' => 'Binding',
                'slug' => 'binding',
                'description' => 'Binding types for printed documents',
                'icon' => 'binding',
                'is_active' => true,
                'sort_order' => 4,
            ],
            [
                'name' => 'Cutting',
                'slug' => 'cutting',
                'description' => 'Cutting options for printed materials',
                'icon' => 'cut',
                'is_active' => true,
                'sort_order' => 5,
            ],
        ];

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