<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\Hrm\Attendance\DutySchedule;

class DutyScheduleSeeder extends Seeder
{
    public function run(): void
    {
        $schedules = [
            ['shift' => 'Morning', 'start_time' => '10:00:00', 'end_time' => '18:00:00'],
            ['shift' => 'Evening', 'start_time' => '15:00:00', 'end_time' => '23:00:00'],
            ['shift' => 'Night', 'start_time' => '23:00:00', 'end_time' => '07:00:00'],
        ];

        foreach ($schedules as $schedule) {
            DutySchedule::create([
                'shift'          => $schedule['shift'],
                'start_time'    => $schedule['start_time'],
                'end_time'      => $schedule['end_time'],
                'consider_time' => 15,
                'hour'          => 8,
                'status_id'     => 1,
            ]);
        }
    }
}
