<?php

namespace Database\Seeders;

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

class SiswaSeeder extends Seeder
{
    public function run(): void
    {
        $data = [
            // 15 LULUS
            ['nisn' => '0012345601', 'nama' => 'Ahmad Fauzi',        'kelas' => 'XII IPA 1', 'jurusan' => 'IPA', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345602', 'nama' => 'Budi Santoso',        'kelas' => 'XII IPA 1', 'jurusan' => 'IPA', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345603', 'nama' => 'Citra Dewi',          'kelas' => 'XII IPA 2', 'jurusan' => 'IPA', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345604', 'nama' => 'Dian Purnama',        'kelas' => 'XII IPA 2', 'jurusan' => 'IPA', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345605', 'nama' => 'Eka Putri',           'kelas' => 'XII IPS 1', 'jurusan' => 'IPS', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345606', 'nama' => 'Fajar Nugroho',       'kelas' => 'XII IPS 1', 'jurusan' => 'IPS', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345607', 'nama' => 'Gita Rahayu',         'kelas' => 'XII IPS 1', 'jurusan' => 'IPS', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345608', 'nama' => 'Hendra Wijaya',       'kelas' => 'XII IPS 2', 'jurusan' => 'IPS', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345609', 'nama' => 'Indah Lestari',       'kelas' => 'XII IPS 2', 'jurusan' => 'IPS', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345610', 'nama' => 'Joko Susilo',         'kelas' => 'XII IPA 1', 'jurusan' => 'IPA', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345611', 'nama' => 'Kartika Sari',        'kelas' => 'XII IPA 2', 'jurusan' => 'IPA', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345612', 'nama' => 'Lukman Hakim',        'kelas' => 'XII IPS 1', 'jurusan' => 'IPS', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345613', 'nama' => 'Mega Wulandari',      'kelas' => 'XII IPA 1', 'jurusan' => 'IPA', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345614', 'nama' => 'Nanda Pratama',       'kelas' => 'XII IPS 2', 'jurusan' => 'IPS', 'status_kelulusan' => 'lulus'],
            ['nisn' => '0012345615', 'nama' => 'Olivia Tanujaya',     'kelas' => 'XII IPA 2', 'jurusan' => 'IPA', 'status_kelulusan' => 'lulus'],
            // 5 TIDAK LULUS
            ['nisn' => '0012345616', 'nama' => 'Panji Setiawan',      'kelas' => 'XII IPS 1', 'jurusan' => 'IPS', 'status_kelulusan' => 'tidak_lulus'],
            ['nisn' => '0012345617', 'nama' => 'Qori Amalia',         'kelas' => 'XII IPA 1', 'jurusan' => 'IPA', 'status_kelulusan' => 'tidak_lulus'],
            ['nisn' => '0012345618', 'nama' => 'Rizki Firmansyah',    'kelas' => 'XII IPS 2', 'jurusan' => 'IPS', 'status_kelulusan' => 'tidak_lulus'],
            ['nisn' => '0012345619', 'nama' => 'Siti Nurhaliza',      'kelas' => 'XII IPA 2', 'jurusan' => 'IPA', 'status_kelulusan' => 'tidak_lulus'],
            ['nisn' => '0012345620', 'nama' => 'Teguh Prasetyo',      'kelas' => 'XII IPS 1', 'jurusan' => 'IPS', 'status_kelulusan' => 'tidak_lulus'],
        ];

        foreach ($data as $row) {
            Siswa::create(array_merge($row, ['tahun_ajaran' => '2024/2025']));
        }
    }
}
