
<?php $__env->startSection('title'); ?>
<title><?php echo e(__('admin.Section Control')); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>
      <!-- Main Content -->
      <div class="main-content">
        <section class="section">
          <div class="section-header">
            <h1><?php echo e(__('admin.Section Control')); ?></h1>

          </div>


          <div class="section-body">
            <div class="row mt-4">
                <div class="col-12">
                    <form action="<?php echo e(route('admin.update-section-control')); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PUT'); ?>
                        <div class="card">
                            <div class="card-body">
                                <h5 class="home_border"><?php echo e(__('admin.Homepage Section Control')); ?></h5>
                                <hr>

                                <table class="table">
                                    <thead>
                                        <tr>
                                            <th width="33%"><?php echo e(__('admin.Section')); ?></th>
                                            <th width="33%"><?php echo e(__('admin.Visibility')); ?></th>
                                            <th width="33%"><?php echo e(__('admin.Item Quantity')); ?></th>
                                        </tr>
                                    </thead>
                                    <?php $__currentLoopData = $homepage; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $section): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td>
                                                <?php echo e($section->section_name); ?>

                                            </td>

                                            <input type="hidden" name="ids[]" value="<?php echo e($section->id); ?>">
                                            <td>
                                                <select name="status[]" class="form-control">
                                                    <option <?php echo e($section->status == 1 ? 'selected' : ''); ?> value="1"><?php echo e(__('admin.Enable')); ?></option>
                                                    <option <?php echo e($section->status == 0 ? 'selected' : ''); ?> value="0"><?php echo e(__('admin.Disable')); ?></option>
                                                </select>
                                            </td>

                                            <?php if($section->id == 1 || $section->id == 4 || $section->id == 5 || $section->id == 7 || $section->id == 10 || $section->id == 36 || $section->id == 38 || $section->id == 45): ?>
                                                <td>
                                                    <input class="d-none" type="text" value="<?php echo e($section->qty); ?>" name="quanities[]" class="form-control">
                                                </td>
                                            <?php else: ?>
                                                <td>
                                                    <input type="text" value="<?php echo e($section->qty); ?>" name="quanities[]" class="form-control">
                                                </td>
                                            <?php endif; ?>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </table>
                                <button class="btn btn-primary" type="submit"><?php echo e(__('admin.Update')); ?></button>
                            </div>
                        </div>
                    </form>
                </div>
          </div>



        </section>
      </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.master_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u453274677/domains/gamekall.in/public_html/resources/views/admin/section_control.blade.php ENDPATH**/ ?>