<?php

namespace Database\Seeders;

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

class KurirSeeder extends Seeder
{
    public function run()
    {
        $kurirs = [
            [
                'name' => 'Budi Kurir',
                'email' => 'budikurir@gmail.com',
                'password' => Hash::make('123'),
                'no_hp' => '081234567891',
                'role' => 'kurir'
            ],
            [
                'name' => 'Ani Kurir',
                'email' => 'anikurir@gmail.com',
                'password' => Hash::make('123'),
                'no_hp' => '081234567892',
                'role' => 'kurir'
            ],
            [
                'name' => 'Yanto Kurir',
                'email' => 'Yantokurir@gmail.com',
                'password' => Hash::make('123'),
                'no_hp' => '081234567892',
                'role' => 'kurir'
            ],
            [
                'name' => 'Citra Kurir',
                'email' => 'citrakurir@gmail.com',
                'password' => Hash::make('123'),
                'no_hp' => '081234567893',
                'role' => 'kurir'
            ],
            [
                'name' => 'Deni Kurir',
                'email' => 'denikurir@gmail.com',
                'password' => Hash::make('123'),
                'no_hp' => '081234567894',
                'role' => 'kurir'
            ],
            [
                'name' => 'Eka Kurir',
                'email' => 'ekakurir@gmail.com',
                'password' => Hash::make('123'),
                'no_hp' => '081234567895',
                'role' => 'kurir'
            ],
        ];

        foreach ($kurirs as $kurir) {
            User::create($kurir);
        }

        $this->command->info('5 data kurir berhasil ditambahkan!');
    }
}
