관리-도구
편집 파일: 426fe778f8bf40e461a632ba0159f170.php
<?php $__env->startSection('meta_title', 'Cart' . ' || ' . $setting->app_name); ?> <?php $__env->startSection('contents'); ?> <!-- breadcrumb-area --> <?php if (isset($component)) { $__componentOriginalcc52fffb9c918b8f3f4cf5faa6f3a53c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalcc52fffb9c918b8f3f4cf5faa6f3a53c = $attributes; } ?> <?php $component = App\View\Components\Frontend\Breadcrumb::resolve(['title' => __('Cart'),'links' => [['url' => route('home'), 'text' => __('Home')], ['url' => route('cart'), 'text' => __('Cart')]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.breadcrumb'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Frontend\Breadcrumb::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalcc52fffb9c918b8f3f4cf5faa6f3a53c)): ?> <?php $attributes = $__attributesOriginalcc52fffb9c918b8f3f4cf5faa6f3a53c; ?> <?php unset($__attributesOriginalcc52fffb9c918b8f3f4cf5faa6f3a53c); ?> <?php endif; ?> <?php if (isset($__componentOriginalcc52fffb9c918b8f3f4cf5faa6f3a53c)): ?> <?php $component = $__componentOriginalcc52fffb9c918b8f3f4cf5faa6f3a53c; ?> <?php unset($__componentOriginalcc52fffb9c918b8f3f4cf5faa6f3a53c); ?> <?php endif; ?> <!-- breadcrumb-area-end --> <!-- cart-area --> <div class="cart__area section-py-120"> <div class="container"> <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(in_array($item->id, session()->get('enrollments'))): ?> <div class="alert alert-danger d-flex align-items-center" role="alert"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-exclamation-triangle-fill flex-shrink-0 me-2" viewBox="0 0 16 16" role="img" aria-label="Warning:"> <path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" /> </svg> <div> <?php echo e(__('You have items in your cart that you already purchased. before proceed please remove those from cart ')); ?> </div> </div> <?php elseif(in_array($item->id, session()->get('instructor_courses'))): ?> <div class="alert alert-danger d-flex align-items-center" role="alert"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-exclamation-triangle-fill flex-shrink-0 me-2" viewBox="0 0 16 16" role="img" aria-label="Warning:"> <path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" /> </svg> <div> <?php echo e(__('You have your own courses in your cart. before proceed please remove those from cart ')); ?> </div> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if(Cart::content()->count() > 0): ?> <div class="row"> <div class="col-lg-8"> <table class="table cart__table"> <thead> <tr> <th class="product__thumb"> </th> <th class="product__name"><?php echo e(__('Course')); ?></th> <th class="product__price"><?php echo e(__('Price')); ?></th> <th class="product__remove"> </th> </tr> </thead> <tbody> <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="product__thumb pe-2"> <a href="<?php echo e(route('course.show', $product->options['slug'])); ?>"><img src="<?php echo e(asset($product->options['image'])); ?>" alt=""></a> </td> <td class="product__name"> <a href="<?php echo e(route('course.show', $product->options['slug'])); ?>"><?php echo e($product->name); ?></a> <br> <?php if(in_array($product->id, session()->get('enrollments'))): ?> <span class="badge bg-warning mt-2"><?php echo e(__('Already purchased')); ?></span> <?php elseif(in_array($product->id, session()->get('instructor_courses'))): ?> <span class="badge bg-warning mt-2"><?php echo e(__('Own course')); ?></span> <?php else: ?> <?php endif; ?> </td> <td class="product__price"><?php echo e(currency($product->price)); ?></td> <td class="product__remove"> <a href="<?php echo e(route('remove-cart-item', $product->rowId)); ?>">×</a> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tr> <td colspan="6" class="cart__actions"> <form action="<?php echo e(route('apply-coupon')); ?>" class="cart__actions-form coupon-form" method="POST"> <?php echo csrf_field(); ?> <input type="text" name="coupon" placeholder="Coupon code"> <button type="submit" class="btn"><?php echo e(__('Apply coupon')); ?></button> </form> </td> </tr> </tbody> </table> </div> <div class="col-lg-4"> <div class="cart__collaterals-wrap"> <h2 class="title"><?php echo e(__('Cart totals')); ?></h2> <ul class="list-wrap"> <li><?php echo e(__('Total Items')); ?><span><?php echo e(count(Cart::content())); ?></span></li> <li> <?php if(Session::has('coupon_code')): ?> <p class="coupon-discount m-0"> <span><?php echo e(__('Discount')); ?></span> <br> <small><?php echo e($coupon); ?> (<?php echo e($discountPercent); ?> %)<a class="ms-2 text-danger" href="/remove-coupon">×</a></small> </p> <span class="discount-amount"><?php echo e(currency($discountAmount)); ?></span> <?php else: ?> <p class="coupon-discount m-0"> <span><?php echo e(__('Discount')); ?></span> </p> <span class="discount-amount"><?php echo e(currency(0)); ?></span> <?php endif; ?> </li> <li><?php echo e(__('Total')); ?> <span class="amount"><?php echo e($total); ?></span></li> </ul> <a href="<?php echo e(route('checkout.index')); ?>" class="btn"><?php echo e(__('Proceed to checkout')); ?></a> </div> </div> </div> <?php else: ?> <div class="w-100 text-center"> <img class="mb-4" src="<?php echo e(asset('uploads/website-images/empty-cart.png')); ?>" alt=""> <h4 class="text-center"><?php echo e(__('Cart is empty!')); ?></h4> <p class="text-center"> <?php echo e(__('Please add some courses in your cart.')); ?> </p> </div> <?php endif; ?> </div> </div> <!-- cart-area-end --> <?php $__env->stopSection(); ?> <?php if(session('removeFromCart') && $setting->google_tagmanager_status == 'active' && $marketing_setting?->remove_from_cart): ?> <?php $removeFromCart = session('removeFromCart'); session()->forget('removeFromCart'); ?> <?php $__env->startPush('scripts'); ?> <script> $(function() { dataLayer.push({ 'event': 'removeFromCart', 'cart_details': <?php echo json_encode($removeFromCart, 15, 512) ?> }); }); </script> <?php $__env->stopPush(); ?> <?php endif; ?> <?php echo $__env->make('frontend.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/inprosysltd/public_html/skill.inprosysltd.com/resources/views/frontend/pages/cart.blade.php ENDPATH**/ ?>