<?php

namespace Database\Seeders;

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

class BrandSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $brands = [
            [
                'name' => 'Monica Beds',
                'slug' => 'monica-beds',
                'description' => 'Official 360 Monica bedding and sheets.',
                'is_featured' => true,
                'is_active' => true,
                'sort_order' => 1,
            ],
            [
                'name' => 'SleepyTime',
                'slug' => 'sleepytime',
                'description' => 'Premium pillows and accessories.',
                'is_featured' => false,
                'is_active' => true,
                'sort_order' => 2,
            ],
            [
                'name' => 'ComfortCo',
                'slug' => 'comfortco',
                'description' => 'High quality duvets and covers.',
                'is_featured' => true,
                'is_active' => true,
                'sort_order' => 3,
            ]
        ];

        foreach ($brands as $brand) {
            Brand::updateOrCreate(
                ['slug' => $brand['slug']],
                $brand
            );
        }
    }
}
