@php
// [name, code, color, is_paid, needs_balance, requires_document, notes]
$presets = [
['特休', 'annual', '#0d6efd', 1, 1, 0,
'依年資計算(6個月3日~10年以上最多30日)。'],
['病假', 'sick', '#20c997', 1, 0, 1,
'未住院:1年內30天以內半薪,超過30天不支薪。住院:不支薪。需附醫療院所證明。'],
['事假', 'personal', '#fd7e14', 0, 0, 0,
'全年合計不超過14天,不帶薪(工資不給付)。'],
['婚假', 'marriage', '#d63384', 1, 0, 1,
'8天全薪。自結婚之日前10日起3個月內請畢(雇主同意可延至1年內)。需附結婚證書。'],
['喪假', 'funeral', '#6c757d', 1, 0, 1,
'依親等全薪。父母、配偶:8天;祖父母(含外祖父母)、子女、配偶父母:6天;兄弟姊妹:3天。需附相關證明文件。'],
['公假', 'official', '#0dcaf0', 1, 0, 0,
'依法令規定,工資照給。'],
];
@endphp
@foreach($presets as [$name,$code,$color,$paid,$balance,$doc,$notes])
@if(!$types->where('code',$code)->count())
@else
{{ $name }}
已建立 ✓
@endif
@endforeach