<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\User;
use Illuminate\Support\Facades\Hash;

class AdminUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        // إنشاء مستخدم مدير
        User::create([
            'name' => 'Admin User',
            'email' => 'admin@taxi.com',
            'password' => Hash::make('123456'),
            'phone' => '07701234567',
            'user_type' => 'admin',
            'status' => 'active',
            'service_type' => 'all',
            'email_verified_at' => now(),
        ]);

        $this->command->info('Admin user created successfully!');
        $this->command->info('Email: admin@taxi.com');
        $this->command->info('Password: 123456');
    }
}
