@php /** @var \App\Models\HospitalSchedule $hospitalSchedule */ @endphp
{{ Form::select('startTimes['.$day.']', $slots, isset($hospitalSchedule) ? $hospitalSchedule->start_time : $slots[array_key_first($slots)] ,['class' => 'form-control form-select', 'data-control'=>'select2']) }}
To
{{ Form::select('endTimes['.$day.']', $slots, isset($hospitalSchedule) ? $hospitalSchedule->end_time : $slots[array_key_last($slots)],['class' => 'form-control form-select', 'data-control'=>'select2']) }}