<?php

namespace Database\Seeders;

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

class MenuSeeder extends Seeder
{
    public function run(): void
    {
        // Header menus
        $home = Menu::create(['name' => 'Home', 'route_name' => 'home', 'location' => 'header', 'order' => 1, 'is_active' => true]);
        $shop = Menu::create(['name' => 'Shop', 'route_name' => 'shop', 'location' => 'header', 'order' => 2, 'is_active' => true]);
        Menu::create(['parent_id' => $shop->id, 'name' => 'All Products', 'route_name' => 'shop', 'location' => 'header', 'order' => 1, 'is_active' => true]);
        Menu::create(['name' => 'About', 'url' => '/page/about', 'location' => 'header', 'order' => 3, 'is_active' => true]);
        Menu::create(['name' => 'Updates', 'route_name' => 'updates', 'location' => 'header', 'order' => 4, 'is_active' => true]);
        Menu::create(['name' => 'Contact', 'route_name' => 'contact', 'location' => 'header', 'order' => 5, 'is_active' => true]);

        // Footer menus
        Menu::create(['name' => 'FAQs', 'url' => '/about/frequent-questions', 'location' => 'footer', 'order' => 1, 'is_active' => true]);
        Menu::create(['name' => 'Terms & Conditions', 'url' => '/about/terms-and-conditions', 'location' => 'footer', 'order' => 2, 'is_active' => true]);
        Menu::create(['name' => 'Privacy Policy', 'url' => '/about/privacy-policy', 'location' => 'footer', 'order' => 3, 'is_active' => true]);
        Menu::create(['name' => 'About Us', 'url' => '/page/about', 'location' => 'footer', 'order' => 4, 'is_active' => true]);
    }
}
