<?php

namespace Database\Seeders;

use App\Models\Rujukan;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class RujukanSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $data = [
            [
                'id_siswa' => '1',
                'permasalahan' => 'Merasa cemas atau khawatir secara berlebihan',
                'tujuan_rujukan' => 'Psikolog',
                'nomor_surat' => '001/BK/SMKN1BJP/VI/2025'
            ],
        ];

        foreach ($data as $item) {
            Rujukan::create([
                'id_siswa' => $item['id_siswa'],
                'permasalahan' => $item['permasalahan'],
                'tujuan_rujukan' => $item['tujuan_rujukan'],
                'nomor_surat' => $item['nomor_surat'],
            ]);
        }
    }
}
