<?php

namespace Database\Seeders;

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

class LunchBreakSettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $data = [
            [
                'schedule_from_time' => '06:00:00',
                'schedule_to_time' => '15:00:00',
                'start_break_time' => '10:00:00',
                'end_break_time' => '11:00:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '06:30:00',
                'schedule_to_time' => '15:30:00',
                'start_break_time' => '10:30:00',
                'end_break_time' => '11:30:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '07:00:00',
                'schedule_to_time' => '16:00:00',
                'start_break_time' => '11:00:00',
                'end_break_time' => '12:00:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '07:30:00',
                'schedule_to_time' => '16:30:00',
                'start_break_time' => '11:30:00',
                'end_break_time' => '12:30:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '08:00:00',
                'schedule_to_time' => '17:00:00',
                'start_break_time' => '12:00:00',
                'end_break_time' => '13:00:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '08:30:00',
                'schedule_to_time' => '17:30:00',
                'start_break_time' => '12:30:00',
                'end_break_time' => '13:30:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '09:00:00',
                'schedule_to_time' => '18:00:00',
                'start_break_time' => '13:00:00',
                'end_break_time' => '14:00:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '12:00:00',
                'schedule_to_time' => '21:00:00',
                'start_break_time' => '16:00:00',
                'end_break_time' => '17:00:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '06:00:00',
                'schedule_to_time' => '17:00:00',
                'start_break_time' => '11:00:00',
                'end_break_time' => '12:00:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '06:30:00',
                'schedule_to_time' => '17:30:00',
                'start_break_time' => '11:30:00',
                'end_break_time' => '12:30:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '07:00:00',
                'schedule_to_time' => '18:00:00',
                'start_break_time' => '12:00:00',
                'end_break_time' => '13:00:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '07:30:00',
                'schedule_to_time' => '18:30:00',
                'start_break_time' => '12:30:00',
                'end_break_time' => '13:30:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '08:00:00',
                'schedule_to_time' => '19:00:00',
                'start_break_time' => '13:00:00',
                'end_break_time' => '14:00:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '08:30:00',
                'schedule_to_time' => '17:30:00',
                'start_break_time' => '13:30:00',
                'end_break_time' => '14:30:00',
                'created_at' => now(),
                'updated_at' => now()
            ],
            [
                'schedule_from_time' => '09:00:00',
                'schedule_to_time' => '20:00:00',
                'start_break_time' => '14:00:00',
                'end_break_time' => '15:00:00',
                'created_at' => now(),
                'updated_at' => now()
            ],

        ];

        LunchBreakSetting::insert($data);
    }

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