<?php

namespace Database\Seeders;

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

class BakeryCategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $categories = [
            [
                'name' => 'Artisan Breads',
                'description' => 'Freshly baked artisan breads including sourdough, whole wheat, baguettes, and ciabatta. Made daily with premium ingredients.',
            ],
            [
                'name' => 'Pastries & Croissants',
                'description' => 'Buttery, flaky pastries and croissants. Perfect for breakfast or a delightful afternoon treat.',
            ],
            [
                'name' => 'Cakes & Cupcakes',
                'description' => 'Beautiful layer cakes, cheesecakes, and cupcakes for every occasion. Custom designs available.',
            ],
            [
                'name' => 'Cookies & Biscuits',
                'description' => 'Classic chocolate chip, oatmeal raisin, shortbread, and specialty cookies. Baked fresh daily.',
            ],
            [
                'name' => 'Pies & Tarts',
                'description' => 'Homemade pies and tarts with seasonal fruits. From classic apple pie to elegant lemon tarts.',
            ],
            [
                'name' => 'Donuts & Sweet Treats',
                'description' => 'Freshly glazed donuts, cinnamon rolls, and other sweet indulgences. Perfect for satisfying your sweet tooth.',
            ],
            [
                'name' => 'Gluten-Free Options',
                'description' => 'Delicious gluten-free baked goods that don\'t compromise on taste. Made with care for those with dietary restrictions.',
            ],
            [
                'name' => 'Vegan Delights',
                'description' => 'Plant-based baked goods that are both delicious and cruelty-free. Everyone can enjoy our vegan options.',
            ],
            [
                'name' => 'Seasonal Specials',
                'description' => 'Limited-time seasonal treats that celebrate the flavors of each season. Check back regularly for new offerings.',
            ],
            [
                'name' => 'Custom Orders',
                'description' => 'Custom cakes, cookies, and pastries for special events. Let us create something unique for your celebration.',
            ],
        ];

        foreach ($categories as $category) {
            Category::firstOrCreate(
                ['name' => $category['name']],
                ['description' => $category['description']]
            );
        }
    }
}

















