<?php
$days = [
    1 => 'Monday',
    2 => 'Tuesday',
    3 => 'Wednesday',
    4 => 'Thursday',
    5 => 'Friday',
    6 => 'Saturday',
    7 => 'Sunday',
];
?>



<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="card">
        <div class="card-header">
            Withdraw Timings
        </div>

        <div class="card-body">

            <?php if($errors->any()): ?>
                <div class="alert alert-danger">
                    <ul class="mb-0">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li><?php echo e($error); ?></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </div>
            <?php endif; ?>

            <form method="POST" action="<?php echo e(url('admin/withdraw-timings')); ?>">
                <?php echo csrf_field(); ?>

                <?php $__currentLoopData = $lists; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="mb-4">
                        <h4 class="mb-3">
                            <?php echo e($days[$list->day_id] ?? 'Unknown Day'); ?>

                        </h4>

                        <div class="row mt-3">
                            <div class="col-md-3">
                                <label class="font-weight-bold">
                                    Start Time:
                                </label>

                                <input type="time"
                                       class="form-control"
                                       name="start_time[<?php echo e($list->day_id); ?>]"
                                       value="<?php echo e($list->start_time); ?>">
                            </div>

                            <div class="col-md-3">
                                <label class="font-weight-bold">
                                    End Time:
                                </label>

                                <input type="time"
                                       class="form-control"
                                       name="end_time[<?php echo e($list->day_id); ?>]"
                                       value="<?php echo e($list->end_time); ?>">
                            </div>
                            

                            <div class="col-md-3">
                                <label>Minimum Withdraw</label>
                                <input type="number"
                                       class="form-control"
                                       name="minimum_withdraw[<?php echo e($list->day_id); ?>]"
                                       value="<?php echo e($list->minimum_withdraw); ?>">
                            </div>
                        
                             <div class="col-md-3">
                                <label>Status</label>
                            
                                <div class="form-check mt-2">
                                    <input type="hidden" name="status[<?php echo e($list->day_id); ?>]" value="0">
                            
                                    <input type="checkbox"
                                           class="form-check-input"
                                           id="status_<?php echo e($list->day_id); ?>"
                                           name="status[<?php echo e($list->day_id); ?>]"
                                           value="1"
                                           <?php echo e($list->status ? 'checked' : ''); ?>>
                            
                                    <label class="form-check-label" for="status_<?php echo e($list->day_id); ?>">
                                        Active
                                    </label>
                                </div>
                            </div>
                        
                        </div>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                <div class="border-top pt-3">
                    <button type="submit" class="btn btn-primary">
                        Submit
                    </button>
                </div>

            </form>

        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.main-layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/onebetplays/public_html/admin.onebetplays.com/resources/views/admin/appdetail/withdraw_timing.blade.php ENDPATH**/ ?>