Al-HUWAITI Shell
Al-huwaiti


Server : nginx/1.18.0
System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64
User : www-data ( 33)
PHP Version : 8.0.16
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/ecommerce/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/ecommerce/storage/framework/views/fb957b1cdf213336b53e656bac5f74023661335e.php
<?php $__env->startSection('title', 'Cart Page'); ?>
<?php $__env->startSection('main-content'); ?>
    <!-- Breadcrumbs -->
    
    <!-- End Breadcrumbs -->

    <!-- Shopping Cart -->
    <div class="shopping-cart mb-5">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <h2 class="my-4">Cart (<?php echo count($inCartProducts); ?>)</h2>

                    <div
                        style="
                            padding: 20px 0;
                            border-radius: 24px;
                            background: #F5FFFA;"
                    >
                        <!-- Shopping Summary -->
                        <table class="table shopping-summery">
                            <thead>
                                <tr class="main-hading font-weight-light" style="color: #4C4C4C">
                                    <th>Item Details</th>
                                    <th>Quantity</th>
                                    <th>Price</th>
                                    <th>Subtotal</th>
                                </tr>
                            </thead>
                            <tbody id="cart_item_list">
                                <form action="<?php echo e(route('cart.update')); ?>" method="POST">
                                    <?php echo csrf_field(); ?>
                                    <?php if($inCartProducts->count()): ?>
                                        <?php $__currentLoopData = $inCartProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $cart): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <?php
                                                    $photo = explode(',', $cart->product['photo']);
                                                ?>
                                                <td class="image" data-title="No">
                                                    <div>
                                                        <div class="d-inline-block mr-3">
                                                            <img class="img-fluid" src="<?php echo e($photo[0]); ?>">
                                                        </div>
                                                        <div class="d-inline-block">
                                                            <p class="product-name"><a
                                                                    href="<?php echo e(route('product-detail', $cart->product['slug'])); ?>"
                                                                    target="_blank"><?php echo e($cart->product['title']); ?></a></p>
                                                            <p class="product-des"><?php echo $cart['summary']; ?></p>
                                                            <div>
                                                                <a
                                                                    href="<?php echo route('cart-delete', $cart->id); ?>"
                                                                    data-title="Remove"
                                                                    class="text-muted"
                                                                ><span
                                                                        class="ti-trash remove-icon mr-2"></span>Remove
                                                                    Item</a>
                                                                
                                                            </div>
                                                        </div>
                                                    </div>
                                                </td>
                                                <td class="qty" data-title="Qty">
                                                    <!-- Input Order -->
                                                    <div class="input-group">
                                                        <div class="button minus">
                                                            <button type="button" class="btn btn-primary btn-number"
                                                                 data-type="minus"
                                                                data-field="quant[<?php echo e($key); ?>]">
                                                                <i class="ti-minus"></i>
                                                            </button>
                                                        </div>
                                                        <input type="text" name="quant[<?php echo e($key); ?>]"
                                                            class="input-number" data-min="1" data-max="100"
                                                            value="<?php echo e($cart->quantity); ?>">
                                                        <input type="hidden" name="qty_id[]" value="<?php echo e($cart->id); ?>">
                                                        <div class="button plus">
                                                            <button type="button" class="btn btn-primary btn-number"
                                                                data-type="plus" data-field="quant[<?php echo e($key); ?>]">
                                                                <i class="ti-plus"></i>
                                                            </button>
                                                        </div>
                                                    </div>
                                                    <!--/ End Input Order -->
                                                </td>
                                                <td class="price" data-title="Price">
                                                    <span class="font-weight-bold"><?php echo config('shop.currency_symbol'); ?>

                                                        <?php echo e(number_format($cart['price'], 2)); ?></span>
                                                </td>
                                                <td class="total-amount cart_single_price" data-title="Total"><span
                                                        class="font-weight-bold"><?php echo config('shop.currency_symbol'); ?>

                                                        <?php echo e(number_format($cart['amount'], 2)); ?></span></td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td class="">
                                                <button class="btn btn-block btn-success" type="submit">Update</button>
                                            </td>
                                        </tr>
                                    <?php else: ?>
                                        <tr>
                                            <td colspan="5" class="text-center font-weight-bold">
                                                There are no item in carts. <a href="<?php echo e(route('product-lists')); ?>" class="text-e-primary">Continue shopping</a>
                                            </td>
                                        </tr>
                                    <?php endif; ?>

                                </form>
                            </tbody>
                        </table>
                        <!--/ End Shopping Summary -->

                        <!-- Total Amount -->
                        <div class="total-amount">
                            <div class="row">
                                <div class="col-lg-8 col-md-5 col-12">
                                    
                                </div>
                                <div class="col-lg-4 col-md-7 col-12">
                                    <div class="right" style="margin: 20px">
                                        <?php
                                            $total_amount = Helper::totalCartPrice();
                                        ?>

                                        <ul>
                                            <li class="order_subtotal" data-price="<?php echo e(Helper::totalCartPrice()); ?>">
                                                Subtotal
                                                <span class="font-weight-bold"><?php echo config('shop.currency_symbol'); ?>

                                                    <?php echo e(number_format(Helper::totalCartPrice(), 2)); ?></span>
                                            </li>

                                            <li class="order_subtotal" data-price="<?php echo e(Helper::totalCartPrice()); ?>">
                                                Shipping fee
                                                <span>Not Included yet</span>
                                            </li>

                                            <?php if(session()->has('coupon')): ?>
                                                <?php
                                                    $total_amount = $total_amount - Session::get('coupon')['value'];
                                                ?>
                                                <li class="coupon_price"
                                                    data-price="<?php echo e(Session::get('coupon')['value']); ?>">
                                                    You
                                                    Save<span><?php echo config('shop.currency_symbol'); ?>

                                                        <?php echo e(number_format(Session::get('coupon')['value'], 2)); ?></span>
                                                </li>
                                            <?php else: ?>
                                                <li>
                                                    Coupon
                                                    <span>No</span>
                                                </li>
                                            <?php endif; ?>

                                            <li class="last font-weight-bold font-px-19" id="order_total_price">
                                                TOTAL
                                                <span><?php echo config('shop.currency_symbol'); ?>

                                                    <?php echo e(number_format($total_amount, 2)); ?></span>
                                            </li>
                                        </ul>
                                        <div>
                                            <a href="<?php echo e(route('checkout')); ?>"
                                                class="btn btn-block btn-lg btn-success">Proceed to Checkout</a>
                                            <a href="<?php echo e(route('product-lists')); ?>"
                                                class="btn btn-block btn-lg btn-success">Continue
                                                shopping</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--/ End Total Amount -->
                    </div>

                </div>
            </div>
            <div class="row">
                <div class="col-12">
                </div>
            </div>
        </div>
    </div>
    <!--/ End Shopping Cart -->


<?php $__env->stopSection(); ?>
<?php $__env->startPush('styles'); ?>
    <style>
        li.shipping {
            display: inline-flex;
            width: 100%;
            font-size: 14px;
        }

        li.shipping .input-group-icon {
            width: 100%;
            margin-left: 10px;
        }

        .input-group-icon .icon {
            position: absolute;
            left: 20px;
            top: 0;
            line-height: 40px;
            z-index: 3;
        }

        .form-select {
            height: 30px;
            width: 100%;
        }

        .form-select .nice-select {
            border: none;
            border-radius: 0px;
            height: 40px;
            background: #f6f6f6 !important;
            padding-left: 45px;
            padding-right: 40px;
            width: 100%;
        }

        .list li {
            margin-bottom: 0 !important;
        }

        .list li:hover {
            background: #3CC78F !important;
            color: white !important;
        }

        .form-select .nice-select::after {
            top: 14px;
        }

    </style>
<?php $__env->stopPush(); ?>
<?php $__env->startPush('scripts'); ?>
    <script>
        $(document).ready(function() {
            $('.shipping select[name=shipping]').change(function() {
                let cost = parseFloat($(this).find('option:selected').data('price')) || 0;
                let subtotal = parseFloat($('.order_subtotal').data('price'));
                let coupon = parseFloat($('.coupon_price').data('price')) || 0;

                $('#order_total_price span').text('$' + (subtotal + cost - coupon).toFixed(2));
            });

        });
    </script>

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

<?php echo $__env->make('frontend.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/ecommerce/resources/views/frontend/pages/cart.blade.php ENDPATH**/ ?>

Al-HUWAITI Shell