<?php

namespace Database\Seeders;

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

class MenuItemSeeder extends Seeder
{
    public function run(): void
    {
        MenuItem::truncate();

        $home = MenuItem::create([
            'name' => 'Home',
            'slug' => 'home',
            'url' => '/',
            'icon' => 'fas fa-home',
            'order' => 1,
            'is_active' => true
        ]);

        $explore = MenuItem::create([
            'name' => 'Explore',
            'slug' => 'explore',
            'url' => '#',
            'icon' => 'fas fa-compass',
            'order' => 2,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'About Us',
            'slug' => 'about-us',
            'url' => '/about',
            'icon' => 'fas fa-info-circle',
            'parent_id' => $explore->id,
            'order' => 1,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'Our Pastors',
            'slug' => 'our-pastors',
            'url' => '/pastors',
            'icon' => 'fas fa-user-tie',
            'parent_id' => $explore->id,
            'order' => 2,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'Branches',
            'slug' => 'branches',
            'url' => '/branches',
            'icon' => 'fas fa-building',
            'parent_id' => $explore->id,
            'order' => 3,
            'is_active' => true
        ]);

        $ministries = MenuItem::create([
            'name' => 'Ministries',
            'slug' => 'ministries',
            'url' => '#',
            'icon' => 'fas fa-users',
            'order' => 3,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'All Ministries',
            'slug' => 'all-ministries',
            'url' => '/departments',
            'icon' => 'fas fa-list',
            'parent_id' => $ministries->id,
            'order' => 1,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'Children Ministry',
            'slug' => 'children-ministry',
            'url' => '/departments/children-ministry',
            'icon' => 'fas fa-child',
            'parent_id' => $ministries->id,
            'order' => 2,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'Youth Ministry',
            'slug' => 'youth-ministry',
            'url' => '/departments/youth-ministry',
            'icon' => 'fas fa-fire',
            'parent_id' => $ministries->id,
            'order' => 3,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'Women Ministry',
            'slug' => 'women-ministry',
            'url' => '/departments/women-ministry',
            'icon' => 'fas fa-female',
            'parent_id' => $ministries->id,
            'order' => 4,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'Men Ministry',
            'slug' => 'men-ministry',
            'url' => '/departments/men-ministry',
            'icon' => 'fas fa-male',
            'parent_id' => $ministries->id,
            'order' => 5,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'Services',
            'slug' => 'services',
            'url' => '/services',
            'icon' => 'fas fa-calendar',
            'order' => 4,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'Contact',
            'slug' => 'contact',
            'url' => '/contact',
            'icon' => 'fas fa-envelope',
            'order' => 5,
            'is_active' => true
        ]);

        MenuItem::create([
            'name' => 'Donate',
            'slug' => 'donate',
            'url' => '/donation',
            'icon' => 'fas fa-donate',
            'order' => 6,
            'is_active' => true
        ]);
    }
}
