@props([ 'checkedDays'=>[], 'fieldName'=>'', 'selectedWeek'=>'', 'fieldLabel'=>'', 'fieldRequired'=>false, 'type'=>'checkbox' ]) @if($type =='checkbox') @foreach(range(0,\Carbon\Carbon::DAYS_PER_WEEK-1) as $day) @php $index = ($day + attendance_setting()?->week_start_from)%7; @endphp