

<?php $__env->startSection('title', $page_title); ?>

<?php $__env->startPush('styles'); ?>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.css" crossorigin="anonymous">
    <!-- select2 -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />

    <!-- select2-bootstrap4-theme -->
    <link href="https://raw.githack.com/ttskch/select2-bootstrap4-theme/master/dist/select2-bootstrap4.css" rel="stylesheet"> <!-- for live demo page -->
    <link href="select2-bootstrap4.css" rel="stylesheet"> <!-- for local development env -->


<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
    <div class="d-flex flex-column-fluid">
        <div class="container-fluid">
            <!--begin::Notice-->
            <div class="card card-custom gutter-b">
                <div class="card-header flex-wrap py-5">
                    <div class="card-title">
                        <h3 class="card-label"><i class="<?php echo e($page_icon); ?> text-primary"></i> <?php echo e($sub_title); ?></h3>
                    </div>
                    <div class="card-toolbar">
                        <!--begin::Button-->
                        <a href="<?php echo e(route('product')); ?>" class="btn btn-warning btn-sm font-weight-bolder">
                            <i class="fas fa-arrow-left"></i> Back</a>
                        <!--end::Button-->
                    </div>
                </div>
            </div>

            <div class="row">
                <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-sm-2">
                    <form id="store_or_update_form_1"  method="post" action="<?php echo e(route('category.serial.swap.store')); ?>" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                    <div class="card" style="height: 300px;">
                        <div class="card-body">
                            <p style="text-align: center;"><img src='<?php echo e(asset('storage/'.PRODUCT_IMAGE_PATH.$cat->image)); ?>' alt='' style='width:100px;height: 133px;'/></p>
                            <p style="text-align: center;padding-top: 0px;font-size: 12px;color: #034d97;font-weight: 600;"><?php echo e($cat->name); ?></p>
                            <input name="old_product_serial" type="hidden" value="<?php echo e($cat->order_level); ?>">
                            <input name="id" type="hidden" value="<?php echo e($cat->id); ?>">
                            <div class="row">
                                <div class="col-sm-8">
                                    <input type="number" class="form-control" name="order_level" id="order_level" value="<?php echo e($cat->order_level ?? 0); ?>" placeholder="Category Serial" required style="margin-bottom: 10px;">

                                </div>
                                <div class="col-sm-4">
                                    <button type="submit" class="btn btn-primary btn-sm save_btn" >Go </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    </form>
                </div>

                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>

            <!--end::Card-->
        </div>

    </div>

<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
    <script src="js/spartan-multi-image-picker.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.9/summernote-bs4.js"></script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.min.js" crossorigin="anonymous"></script>

    <script type="text/javascript">

<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/iconshoppercom/iconshopper/resources/views/category/swapSerial.blade.php ENDPATH**/ ?>