@php($weekDays = App\Models\ClinicSchedule::WEEKDAY_FULL_NAME) @php($slots = getSchedulesTimingSlot())
@foreach (App\Models\ClinicSchedule::WEEKDAY as $day => $shortWeekDay) @php($isValid = $clinicSchedules->where('day_of_week', $day)->count() != 0)
@if ($clinicSchedule = $clinicSchedules->where('day_of_week', $day)->first()) @include('clinic_schedule.slot', [ 'slot' => $slots, 'day' => $day, 'clinicSchedule' => $clinicSchedule, ]) @else @include('clinic_schedule.slot', ['slot' => $slots, 'day' => $day]) @endif
@endforeach
{{ Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary me-2']) }}