<?php

namespace Database\Seeders;

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

class ModuleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $modules = [
            [
                'key' => 'lms',
                'name' => 'Learning Management System',
                'description' => 'Manage courses, lessons, and student progress',
                'enabled' => true,
            ],
            [
                'key' => 'cms',
                'name' => 'Client Management System',
                'description' => 'Manage clients, contacts, and relationships',
                'enabled' => true,
            ],
            [
                'key' => 'content',
                'name' => 'Content Management System',
                'description' => 'Manage website content, pages, and media',
                'enabled' => true,
            ],
            [
                'key' => 'immigopro',
                'name' => 'ImmiGoPro Client Management',
                'description' => 'Immigration client management and case tracking',
                'enabled' => true,
            ],
            [
                'key' => 'public_client',
                'name' => 'Public Client Management',
                'description' => 'Public-facing client portal and management',
                'enabled' => true,
            ],
            [
                'key' => 'payments',
                'name' => 'Payment Management',
                'description' => 'Manage invoices, transactions, and subscriptions',
                'enabled' => true,
            ],
        ];

        foreach ($modules as $module) {
            Module::create($module);
        }

        $this->command->info('✓ Modules seeded successfully!');
    }
}
