<?php

namespace Database\Seeders;

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

class ServiceCategorySeeder extends Seeder
{
    public function run(): void
    {
        $categories = [
            [
                'name' => 'Printing',
                'slug' => 'printing',
                'description' => 'Professional printing services for various materials and products',
                'icon' => 'printer',
                'is_active' => true,
                'sort_order' => 1,
            ],
            [
                'name' => 'Item Branding',
                'slug' => 'item-branding',
                'description' => 'Custom branding and personalization services for promotional items',
                'icon' => 'branding',
                'is_active' => true,
                'sort_order' => 2,
            ],
        ];

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