<?php

namespace Database\Seeders;

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

class GuruSeeder extends Seeder
{
    public function run(): void
    {
        $gurus = [
            ['nip' => '2343762663300043', 'nama' => 'Barizatul Kamilah'],
            ['nip' => '2635762664200062', 'nama' => 'Beny Setiawan'],
            ['nip' => '2460770671130082', 'nama' => 'Hasan'],
            ['nip' => '6535747649200022', 'nama' => 'Fibrian Kartika Nuswanto'],
            ['nip' => '8637774675130152', 'nama' => 'Andy Nur Rachman'],
            ['nip' => '4447762663130173', 'nama' => 'Edi Hariyanto'],
            ['nip' => '3739766667130182', 'nama' => 'Fitriyah Arizkiyanti'],
            ['nip' => '4743763664300082', 'nama' => 'Uswatun Hasanah'],
            ['nip' => '6433772673230272', 'nama' => 'Alvi Hidayati'],
            ['nip' => '9651770671130122', 'nama' => 'Haris Nurtanio'],
            ['nip' => '8152760661300073', 'nama' => 'Firlya Citra Kurniawati'],
            ['nip' => '1957769670130032', 'nama' => 'Ahmad Timbul Sholeh'],
            ['nip' => '1949759659200002', 'nama' => 'Muhammad Sudarmaji'],
            ['nip' => '3044771672130253', 'nama' => 'Vishal Rahmat Dharmawan'],
            ['nip' => '5641769670230172', 'nama' => 'Ayu Ridhawati'],
            ['nip' => '8558757658200002', 'nama' => 'Adi Sumantri'],
            ['nip' => '4944762664200052', 'nama' => 'Sutin Rofikah'],
            ['nip' => '0043764665130213', 'nama' => 'Suwarno Arieska'],
            ['nip' => '8955757659300062', 'nama' => 'Ratnaningtyas Trisnasanti'],
        ];

        foreach ($gurus as $guru) {
            Guru::create([
                'nip'      => $guru['nip'],
                'nama'     => $guru['nama'],
                'password' => Hash::make('password'),
            ]);
        }
    }
}