<?php $__empty_1 = true; $__currentLoopData = $doctor_has_schedule ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

    <div class="row align-items-end">
        <div class="col-xl-3 col-lg-3 form-group">
            <label><?php echo e(__("Day")); ?><span>*</span></label>
            <select class="form--control select2-basic" name="schedule_day[]">
                <option disabled selected><?php echo e(__("Select Day")); ?></option>
                <?php $__currentLoopData = $weeks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $week): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($week->id); ?>" <?php echo e($week->id == $item->week_id ? 'selected' : ''); ?>><?php echo e($week->day); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>

        <div class="col-xl-3 col-lg-3 form-group">
            <?php echo $__env->make('admin.components.form.input',[
                'label'         => __("From Time")."*",
                'type'          => 'time',
                'name'          => "from_time[]",
                'value'         => $item->from_time,
            ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <div class="col-xl-3 col-lg-3 form-group">
            <?php echo $__env->make('admin.components.form.input',[
                'label'         => __("To Time")."*",
                'type'          => 'time',
                'name'          => "to_time[]",
                'value'         => $item->to_time,
            ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <div class="col-xl-2 col-lg-2 form-group">
            <?php echo $__env->make('admin.components.form.input',[
                'label'             => __("Patient")."(".__("Max").")"."*",
                'name'              => "max_patient[]",
                'class'             => "number-input",
                'placeholder'       => "Write Here...",
                'value'             => $item->max_patient,   
            ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <div class="col-xl-1 col-lg-1 form-group">
            <button type="button" class="custom-btn btn--base btn--danger row-cross-btn w-100"><i class="las la-times"></i></button>
        </div>
    </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    <div class="row align-items-end">
        <div class="col-xl-3 col-lg-3 form-group">
            <label><?php echo e(__("Day")); ?><span>*</span></label>
            <select class="form--control select2-basic" name="schedule_day[]">
                <option disabled selected><?php echo e(__("Select Day")); ?></option>
                <?php $__currentLoopData = $weeks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($item->id); ?>"><?php echo e($item->day); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>
        <div class="col-xl-3 col-lg-3 form-group">
            <?php echo $__env->make('admin.components.form.input',[
                'label'         => __("From Time")."*",
                'type'          => 'time',
                'name'          => "from_time[]",
                
            ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <div class="col-xl-3 col-lg-3 form-group">
            <?php echo $__env->make('admin.components.form.input',[
                'label'         => __("To Time")."*",
                'type'          => 'time',
                'name'          => "to_time[]",
                
            ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <div class="col-xl-2 col-lg-2 form-group">
            <?php echo $__env->make('admin.components.form.input',[
                'label'             => __("Patient")."(".__("Max").")"."*",
                'name'              => "max_patient[]",
                'class'             => "number-input",
                'placeholder'       => __("Write Here")."...",
                 
            ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <div class="col-xl-1 col-lg-1 form-group">
            <button type="button" class="custom-btn btn--base btn--danger row-cross-btn w-100"><i class="las la-times"></i></button>
        </div>
    </div>  
<?php endif; ?>

<?php /**PATH D:\xampp\htdocs\adoctor-update_version\resources\views/admin/components/doctor-care/schedule-item.blade.php ENDPATH**/ ?>