<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Shift extends Model
{

    protected $fillable = [
        'superadmin_id', 'company_id', 'name', 'start_time', 'end_time', 'shift_code', 'shift_duration',
        'is_break1', 'break1_start', 'break1_end', 'break1_duration',
        'is_break2', 'break2_start', 'break2_end', 'break2_duration',
        'break_details_rule', 'second_wo_days',
        'first_weekly_off', 'second_weekly_off', 'second_wo_type', 'half_day_shift',
        'remove_duplicate_punch', 'max_early_allow', 'max_ot_allow', 'no_of_present_for_wo',
        'mark_absent_aaa', 'mark_absent_lwol', 'single_punch_policy',
        'is_night_shift', 'break1_early_out', 'break1_late_in',
        'break2_early_out', 'break2_late_in', 'mark_absent_hld_abs_hld',
        'ot_calculation_rule', 'working_calculation_rule'
    ];

    protected $casts = [
        'second_wo_days' => 'array',
        'is_break1' => 'boolean',
        'is_break2' => 'boolean',
        'mark_absent_aaa' => 'boolean',
        'mark_absent_lwol' => 'boolean',
        'mark_absent_hld_abs_hld' => 'boolean',
    ];
}
