ok

Mini Shell

Direktori : /home2/selectio/www/a1tex.in/storage/framework/views/
Upload File :
Current File : /home2/selectio/www/a1tex.in/storage/framework/views/f8f97cd7b327b6dfe81ad521b3d9991c15f66a76.php

<div class="modal-header p-2">
    <h4 class="modal-title product-title">
    </h4>
    <button class="close call-when-done" type="button" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">&times;</span>
    </button>
</div>
<div class="modal-body">
    <div class="media gap-3">
        <!-- Product gallery-->
        <div class="d-flex align-items-center justify-content-center active">
            <img class="img-responsive rounded"
                src="<?php echo e(asset('storage/app/public/product/thumbnail')); ?>/<?php echo e($product->thumbnail); ?>"
                 onerror="this.src='<?php echo e(asset('public/assets/back-end/img/160x160/img2.jpg')); ?>'"
                 data-zoom="<?php echo e(asset('storage/app/public/product')); ?>/<?php echo e($product['image']); ?>"
                 alt="Product image" height="100">
            <div class="cz-image-zoom-pane"></div>
        </div>
        <!-- Product details-->
        <div class="details media-body">
            <h4 class="mb-3 product-title"><?php echo e($product->name); ?></h4>

            <div class="mb-2 text-dark">
                <h4 class="c1 font-weight-normal text-accent">
                    <?php echo e(\App\CPU\Helpers::get_price_range($product)); ?>

                </h4>
                
            </div>

            <?php if($product->discount > 0): ?>
                <div class="mb-3 text-dark">
                    <strong><?php echo e(\App\CPU\translate('Discount')); ?> : </strong>
                    <strong id="set-discount-amount"></strong>
                </div>
            <?php endif; ?>


        </div>
    </div>
    <div class="row pt-2">
        <div class="col-12">
            <?php
            $cart = false;
            if (session()->has('cart')) {
                foreach (session()->get('cart') as $key => $cartItem) {
                    if (is_array($cartItem) && $cartItem['id'] == $product['id']) {
                        $cart = $cartItem;
                    }
                }
            }

            ?>
            <h3 class="mb-3"><?php echo e(\App\CPU\translate('description')); ?></h3>
            <span class="d-block text-dark">
                <?php echo $product->description; ?>

            </span>
            <form id="add-to-cart-form">
                <?php echo csrf_field(); ?>
                <input type="hidden" name="id" value="<?php echo e($product->id); ?>">
                <div class="position-relative mb-4">
                    <?php if(count(json_decode($product->colors)) > 0): ?>
                        <div class="d-flex flex-wrap gap-2">
                            <div class="product-description-label"><?php echo e(\App\CPU\translate('color')); ?>:</div>

                            <div class="color-select d-flex gap-2 flex-wrap" id="option1">
                                <?php $__currentLoopData = json_decode($product->colors); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $color): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <input class="btn-check" type="radio" onclick="color_change(this);"
                                        id="<?php echo e($product->id); ?>-color-<?php echo e($key); ?>"
                                        name="color" value="<?php echo e($color); ?>"
                                        <?php if($key == 0): ?> checked <?php endif; ?> autocomplete="off">
                                <label id="label-<?php echo e($product->id); ?>-color-<?php echo e($key); ?>" class="btn btn-sm mb-0 <?php echo e($key==0?'border-add':""); ?>" style="background: <?php echo e($color); ?>;"
                                        for="<?php echo e($product->id); ?>-color-<?php echo e($key); ?>"
                                            data-toggle="tooltip"></label>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                    <?php endif; ?>
                    <?php
                        $qty = 0;
                        if(!empty($product->variation)){
                        foreach (json_decode($product->variation) as $key => $variation) {
                                $qty += $variation->qty;
                            }
                        }
                    ?>
                </div>
                <?php $__currentLoopData = json_decode($product->choice_options); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $choice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <h5 class="text-capitalize mt-3 mb-2"><?php echo e($choice->title); ?></h5>
                    <div class="d-flex gap-2 flex-wrap">
                        <?php $__currentLoopData = $choice->options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <input class="btn-check" type="radio"
                                   id="<?php echo e($choice->name); ?>-<?php echo e($option); ?>"
                                   name="<?php echo e($choice->name); ?>" value="<?php echo e($option); ?>"
                                   <?php if($key == 0): ?> checked <?php endif; ?> autocomplete="off">
                            <label class="btn btn-sm check-label border-0 mb-0"
                                   for="<?php echo e($choice->name); ?>-<?php echo e($option); ?>"><?php echo e($option); ?></label>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                <!-- Quantity + Add to cart -->
                <div class="d-flex justify-content-between align-items-center mt-3">
                    <h3 class="product-description-label mb-0"><?php echo e(\App\CPU\translate('Quantity')); ?>:</h3>
                    <div class="product-quantity d-flex align-items-center">
                        <div class="d-flex align-items-center">
                            <span class="product-quantity-group">
                                <button type="button" class="btn-number"
                                        data-type="minus" data-field="quantity"
                                        disabled="disabled">
                                        <i class="tio-remove"></i>
                                </button>
                                <input type="text" name="quantity"
                                       class="form-control input-number text-center cart-qty-field"
                                       placeholder="1" value="1" min="1" max="100">
                                <button type="button" class="btn-number" data-type="plus"
                                        data-field="quantity">
                                        <i class="tio-add"></i>
                                </button>
                            </span>
                        </div>
                    </div>
                </div>

                <div class="d-flex flex-wrap gap-2 mt-3 title-color" id="chosen_price_div">
                    <div class="product-description-label"><?php echo e(\App\CPU\translate('Total Price')); ?>:</div>
                    <div class="product-price">
                        <strong id="chosen_price"></strong>
                    </div>
                </div>

                <div class="d-flex justify-content-center mt-3">
                    <button class="btn btn--primary px-4" onclick="addToCart()" type="button">
                        <i class="tio-shopping-cart"></i>
                        <?php echo e(\App\CPU\translate('add')); ?>

                    </button>
                </div>
            </form>
        </div>
    </div>
</div>


<script type="text/javascript">
    cartQuantityInitialize();
    getVariantPrice();
    $('#add-to-cart-form input').on('change', function () {
        getVariantPrice();
    });
</script>
<script>
    $(document).on('ready', function () {
        console.log($product->id)
    });
</script>
<script>
    function color_change(val)
    {
        console.log(val.id);
        $('.color-border').removeClass("border-add");
        $('#label-'+val.id).addClass("border-add");
    }
</script>

<?php /**PATH /home2/romeojul/public_html/a1tex.in/resources/views/admin-views/pos/_quick-view-data.blade.php ENDPATH**/ ?>

Zerion Mini Shell 1.0