<?php

namespace Database\Seeders;

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

class CategorySeeder extends Seeder
{
    public function run(): void
    {
        $categories = [
            ['name' => 'Sygyr eti', 'slug' => 'sygyr-eti', 'icon' => 'set_meal', 'sort_order' => 1],
            ['name' => 'Goýun eti', 'slug' => 'goyun-eti', 'icon' => 'cruelty_free', 'sort_order' => 2],
            ['name' => 'Goş', 'slug' => 'gos', 'icon' => 'kebab_dining', 'sort_order' => 3],
            ['name' => 'Guş eti', 'slug' => 'gus-eti', 'icon' => 'egg', 'sort_order' => 4],
            ['name' => 'Kolbasalar', 'slug' => 'kolbasalar', 'icon' => 'local_pizza', 'sort_order' => 5],
        ];

        foreach ($categories as $category) {
            Category::create(array_merge($category, ['is_active' => true]));
        }
    }
}
