<?php

namespace Database\Seeders;

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

class LeaveReasonSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $data = [
            [
                'leave_id' => '2',
                'name' => 'Personal',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '2',
                'name' => 'Family Related',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '2',
                'name' => 'Recreation/Leisure',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '2',
                'name' => 'Emergency',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '2',
                'name' => 'Others',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '3',
                'name' => 'Cardiovascular Disease',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '3',
                'name' => 'Musculo Skeletal Pains',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '3',
                'name' => 'Respiratory Disease',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '3',
                'name' => 'EENT',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '3',
                'name' => 'Infectious Disease/Infection',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '3',
                'name' => 'Headache/Flu',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '3',
                'name' => 'OB-GYNE Related',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '3',
                'name' => 'Dental Reason',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'leave_id' => '3',
                'name' => 'Others',
                'created_at' => now(),
                'updated_at' => now(),
            ],

        ];

        \App\Models\LeaveReason::insert($data);
    }

    public function reset(){
        LeaveReason::truncate();
    }
}
