<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Category;
use Illuminate\Support\Str;

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $categories = [
            [
                'name' => 'River Fish',
                'slug' => 'river-fish',
                'description' => 'Fresh water fish from rivers and lakes of Bangladesh',
                'sort_order' => 1,
                'is_active' => true,
            ],
            [
                'name' => 'Sea Fish',
                'slug' => 'sea-fish', 
                'description' => 'Salt water fish from the Bay of Bengal',
                'sort_order' => 2,
                'is_active' => true,
            ],
            [
                'name' => 'Dry Fish',
                'slug' => 'dry-fish',
                'description' => 'Traditional dried fish varieties',
                'sort_order' => 3,
                'is_active' => true,
            ],
            [
                'name' => 'Imported Fish',
                'slug' => 'imported-fish',
                'description' => 'Premium imported fish varieties',
                'sort_order' => 4,
                'is_active' => true,
            ],
            [
                'name' => 'Pond Fish',
                'slug' => 'pond-fish',
                'description' => 'Farm-raised fish from local ponds',
                'sort_order' => 5,
                'is_active' => true,
            ],
            [
                'name' => 'Live Fish',
                'slug' => 'live-fish',
                'description' => 'Fresh live fish available daily',
                'sort_order' => 6,
                'is_active' => true,
            ],
        ];

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