<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\User;
use App\Models\Warehouse;
use Illuminate\Support\Facades\Hash;
use Database\Seeders\PakistaniRestaurantInventorySeeder;
use Database\Seeders\InventoryCategorySeeder;
use Database\Seeders\AgentSeeder;

class DatabaseSeeder extends Seeder
{
    public function run(): void
    {
       /* // Create Admin User
        User::create([
            'name' => 'Admin User',
            'email' => 'admin@pos.com',
            'password' => Hash::make('password'),
            'role' => 'admin',
        ]);

        // Create Manager User
        User::create([
            'name' => 'Manager User',
            'email' => 'manager@pos.com',
            'password' => Hash::make('password'),
            'role' => 'manager',
        ]);

        // Create Staff User
        User::create([
            'name' => 'Staff User',
            'email' => 'staff@pos.com',
            'password' => Hash::make('password'),
            'role' => 'staff',
        ]);

        // Create Sample Warehouses
        Warehouse::create([
            'name' => 'Main Warehouse',
            'code' => 'WH001',
            'address' => '123 Main Street, City',
            'status' => 'active',
        ]);

        Warehouse::create([
            'name' => 'Secondary Warehouse',
            'code' => 'WH002',
            'address' => '456 Second Street, City',
            'status' => 'active',
        ]);

        // Seed Inventory Categories
        $this->call(InventoryCategorySeeder::class);
       
        

        // Seed Pakistani Restaurant Inventory Items
        $this->call(PakistaniRestaurantInventorySeeder::class);
       
        // Seed Warehouse Agents (3 agents per warehouse)
        $this->call(AgentSeeder::class);

         */
    }
}

