D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
ghanempharmacy.com
/
Filename :
test_compiled.php
back
Copy
<aside class="col-lg-4 pt-4 pt-lg-2 px-max-md-0 order-summery-aside"> <?php $selectedGiftProducts = session('gift_products', []); ?> <?php if(!empty($selectedGiftProducts)): ?> <div class="card mb-3 border-success"> <div class="card-header bg-success text-white"> <h5 class="mb-0 fs-16 font-bold"><?php echo e(translate('selected_gifts')); ?></h5> </div> <div class="card-body"> <div class="row g-2"> <?php $__currentLoopData = $selectedGiftProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $productId): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $giftProduct = \App\Models\Product::find($productId); ?> <?php if($giftProduct): ?> <div class="col-12 mb-2"> <div class="border rounded p-2 d-flex align-items-center bg-white shadow-sm"> <div class="position-relative"> <img src="<?php echo e(getStorageImages(path: $giftProduct->thumbnail_full_url, type: 'product')); ?>" class="rounded shadow-sm" style="width: 50px; height: 50px; object-fit: cover;"> <?php $watermark = getWatermarkConfig(); ?> <?php if($watermark && $watermark->is_active): ?> <div class="position-absolute w-100 h-100 d-flex align-items-center justify-content-center" style="top: 0; left: 0; pointer-events: none; opacity: 0.5;"> <img src="<?php echo e($watermark->image_url); ?>" style="max-width: 80%; max-height: 80%; object-fit: contain;" alt="Watermark"> </div> <?php endif; ?> </div> <div class="ms-2 pl-2"> <h6 class="mb-0 fs-13 line-clamp-1"><?php echo e($giftProduct->name); ?></h6> <span class="badge badge-soft-success"><?php echo e(translate('free')); ?></span> </div> </div> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <?php endif; ?> <?php ($giftService = app(\App\Services\GiftService::class)); ?> <?php ($customerId = auth('customer')->check() ? auth('customer')->id() : null); ?> <?php ($guestId = session('guest_id', null)); ?> <?php ($availableGifts = $giftService->getAvailableGiftsForCart($customerId, $guestId)); ?> <?php if(isset($availableGifts) && count($availableGifts) > 0): ?> <div class="card mb-3 border"> <div class="card-header bg-white"> <h5 class="mb-0 fs-16 font-bold text-dark"><?php echo e(translate('available_gifts')); ?></h5> </div> <div class="card-body"> <div class="row g-3"> <?php $__currentLoopData = $availableGifts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gift): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-12"> <div class="border rounded p-3 h-100 d-flex flex-column justify-content-between shadow-sm bg-white"> <div class="d-flex align-items-center mb-2"> <div class="rounded-circle bg-soft-primary p-2 mr-2 d-flex align-items-center justify-content-center" style="width: 40px; height: 40px;"> <i class="<?php echo e($gift->gift_type == 'money_wise' ? 'tio-money-vs' : 'tio-gift'); ?> fs-18 text-primary"></i> </div> <div class="flex-grow-1"> <h6 class="mb-0 fs-14 font-bold text-primary"><?php echo e($gift->title); ?></h6> <span class="badge badge-soft-<?php echo e($gift->gift_type == 'money_wise' ? 'success' : 'primary'); ?> fs-10 px-2 mt-1"> <?php echo e(translate($gift->gift_type == 'money_wise' ? 'cashback' : 'free_product')); ?> </span> </div> </div> <p class="fs-12 text-muted mb-3 line-clamp-2"><?php echo e($gift->description); ?></p> <div class="mt-auto"> <?php if($gift->gift_type == 'product_wise'): ?> <button type="button" class="btn btn--primary btn-sm px-3 rounded-pill w-100" onclick="showGiftSelectionModal('<?php echo e($gift->id); ?>', <?php echo e(json_encode($gift->gift_products)); ?>, <?php echo e($gift->gift_product_quantity); ?>)"> <?php echo e(translate('select_products')); ?> </button> <?php elseif($gift->gift_type == 'money_wise'): ?> <div class="text-success font-bold d-flex align-items-center justify-content-between gap-2 border-top pt-2 mt-2"> <span class="fs-12 opacity-75"><?php echo e(translate('cashback_value')); ?></span> <span class="fs-16"><?php echo e(webCurrencyConverter(amount: $gift->gift_money_value)); ?></span> </div> <?php endif; ?> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <?php endif; ?> <div class="__cart-total __cart-total_sticky"> <div class="cart_total p-0"> <?php ($systemTaxConfig = getTaxModuleSystemTypesConfig()); ?> <?php ($shippingMethod = getWebConfig(name: 'shipping_method')); ?> <?php ($subTotal = 0); ?> <?php ($totalTax = \App\Utils\CartManager::getCartListTaxAmount()); ?> <?php ($totalAmount = 0); ?> <?php ($totalAmountAfterReferralDiscount = 0); ?> <?php ($totalShippingCost = 0); ?> <?php ($referralAmount = 0); ?> <?php ($totalDiscountOnProduct = 0); ?> <?php ($cart = \App\Utils\CartManager::getCartListQuery(type: 'checked')); ?> <?php ($cartGroupIds = \App\Utils\CartManager::get_cart_group_ids()); ?> <?php ($getShippingCost = \App\Utils\CartManager::get_shipping_cost(type: 'checked')); ?> <?php ($getShippingCostSavedForFreeDelivery = \App\Utils\CartManager::getShippingCostSavedForFreeDelivery(type: 'checked')); ?> <?php if($cart->count() > 0): ?> <?php $__currentLoopData = $cart; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $cartItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php ($subTotal += $cartItem['price'] * $cartItem['quantity']); ?> <?php ($totalDiscountOnProduct += $cartItem['discount'] * $cartItem['quantity']); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if(session()->missing('coupon_type') || session('coupon_type') != 'free_delivery'): ?> <?php ($totalShippingCost = $getShippingCost - $getShippingCostSavedForFreeDelivery); ?> <?php else: ?> <?php ($totalShippingCost = $getShippingCost); ?> <?php endif; ?> <?php endif; ?> <?php ($totalSavedAmount = $totalDiscountOnProduct); ?> <?php if(session()->has('coupon_discount') && session('coupon_discount') > 0 && session('coupon_type') != 'free_delivery'): ?> <?php ($totalSavedAmount += session('coupon_discount')); ?> <?php endif; ?> <?php if($getShippingCostSavedForFreeDelivery > 0): ?> <?php ($totalSavedAmount += $getShippingCostSavedForFreeDelivery); ?> <?php endif; ?> <?php if($totalSavedAmount > 0): ?> <h6 class="text-center text-primary mb-4 d-flex align-items-center justify-content-center gap-2"> <img src="<?php echo e(theme_asset(path: 'public/assets/front-end/img/icons/offer.svg')); ?>" alt=""> <?php echo e(translate('you_have_Saved')); ?> <strong><?php echo e(webCurrencyConverter(amount: $totalSavedAmount)); ?>!</strong> </h6> <?php endif; ?> <div class="d-flex justify-content-between"> <span class="cart_title"><?php echo e(translate('sub_total')); ?></span> <span class="cart_value"> <?php echo e(webCurrencyConverter(amount: $subTotal)); ?> </span> </div> <div class="d-flex justify-content-between"> <span class="cart_title"><?php echo e(translate('shipping')); ?></span> <span class="cart_value"> <?php echo e(webCurrencyConverter(amount: $totalShippingCost)); ?> </span> </div> <div class="d-flex justify-content-between"> <span class="cart_title"><?php echo e(translate('discount_on_product')); ?></span> <span class="cart_value"> - <?php echo e(webCurrencyConverter(amount: $totalDiscountOnProduct)); ?> </span> </div> <?php if($systemTaxConfig['SystemTaxVat']['is_active'] && !$systemTaxConfig['is_included']): ?> <div class="d-flex justify-content-between"> <span class="cart_title"><?php echo e(translate('tax')); ?></span> <span class="cart_value"> <?php echo e(webCurrencyConverter(amount: $totalTax['item_tax'] + $totalTax['shipping_cost_tax'])); ?> </span> </div> <?php endif; ?> <?php $coupon_dis = 0; if (session()->has('coupon_discount')) { $couponDiscount = session()->has('coupon_discount') ? session('coupon_discount') : 0; $coupon_dis = $couponDiscount; } $giftDiscount = session('gift_discount', 0); $totalAmount = $subTotal + ($totalTax['item_tax'] + $totalTax['shipping_cost_tax']) + $totalShippingCost - $coupon_dis - $totalDiscountOnProduct - $giftDiscount; $referralAmount = \App\Utils\CustomerManager::getReferralDiscountAmount(user: auth('customer')->check() ? auth('customer')->user() : null, couponDiscount: $coupon_dis); ?> <?php if($referralAmount > 0): ?> <div class="d-flex justify-content-between"> <span class="cart_title"><?php echo e(translate('referral_discount')); ?></span> <span class="cart_value"> - <?php echo e(webCurrencyConverter(amount: $referralAmount)); ?> </span> </div> <?php endif; ?> <?php if($giftDiscount > 0): ?> <div class="d-flex justify-content-between"> <span class="cart_title text-success"><?php echo e(translate('gift_discount')); ?></span> <span class="cart_value text-success"> - <?php echo e(webCurrencyConverter(amount: $giftDiscount)); ?> </span> </div> <?php endif; ?> <?php if(session()->has('gift_wallet_credit')): ?> <div class="d-flex justify-content-between border-top-0"> <span class="cart_title text-primary"><?php echo e(translate('future_cashback')); ?></span> <span class="cart_value text-primary"> + <?php echo e(webCurrencyConverter(amount: session('gift_wallet_credit'))); ?> </span> </div> <div class="text-right pb-1"> <small class="text-muted fw-semi-bold"><?php echo e(translate('will_be_added_to_wallet_after_payment')); ?></small> </div> <?php endif; ?> <?php ($coupon_dis = 0); ?> <?php if(auth('customer')->check()): ?> <?php if(session()->has('coupon_discount')): ?> <?php ($couponDiscount = session()->has('coupon_discount') ? session('coupon_discount') : 0); ?> <div class="d-flex justify-content-between"> <span class="cart_title"><?php echo e(translate('coupon_discount')); ?></span> <span class="cart_value"> - <?php echo e(webCurrencyConverter(amount: $couponDiscount)); ?> </span> </div> <div class="pt-2"> <div class="d-flex align-items-center form-control rounded-pill pl-3 p-1"> <img width="24" height="24" src="<?php echo e(theme_asset(path: 'public/assets/front-end/img/icons/coupon.svg')); ?>" alt=""> <div class="px-2 d-flex justify-content-between w-100"> <div> <?php echo e(session('coupon_code')); ?> <span class="text-primary small">( -<?php echo e(webCurrencyConverter(amount: $couponDiscount)); ?> )</span> </div> <div class="bg-transparent text-danger cursor-pointer px-2 get-view-by-onclick" data-link="<?php echo e(route('coupon.remove')); ?>">x</div> </div> </div> </div> <?php ($coupon_dis = session('coupon_discount')); ?> <?php else: ?> <div class="pt-2"> <form class="needs-validation coupon-code-form" action="javascript:" method="post" novalidate id="coupon-code-ajax"> <div class="d-flex form-control rounded-pill ps-3 p-1"> <img width="24" src="<?php echo e(theme_asset(path: 'public/assets/front-end/img/icons/coupon.svg')); ?>" alt=""> <input class="input_code border-0 px-2 text-dark bg-transparent outline-0 w-100" type="text" name="code" placeholder="<?php echo e(translate('coupon_code')); ?>" required> <button class="btn btn--primary rounded-pill text-uppercase py-1 fs-12" type="button" id="apply-coupon-code"> <?php echo e(translate('apply')); ?> </button> </div> <div class="invalid-feedback"><?php echo e(translate('please_provide_coupon_code')); ?></div> </form> </div> <?php ($coupon_dis = 0); ?> <?php endif; ?> <?php endif; ?> <hr class="my-2"> <div class="d-flex justify-content-between"> <span class="cart_title text-primary font-weight-bold"> <?php echo e(translate('total')); ?> <?php if($systemTaxConfig['SystemTaxVat']['is_active'] && $systemTaxConfig['is_included']): ?> <span class="fs-12 font-weight--600">(<?php echo e(translate('Tax_:_Inc.')); ?>)</span> <?php endif; ?> </span> <span class="cart_value"> <?php echo e(webCurrencyConverter(amount: $totalAmount - $referralAmount)); ?> </span> </div> </div> <?php ($company_reliability = getWebConfig(name: 'company_reliability')); ?> <?php if($company_reliability != null): ?> <div class="pt-5"> <div class="footer-slider owl-theme owl-carousel"> <?php $__currentLoopData = $company_reliability; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($value['status'] == 1 && !empty($value['title'])): ?> <div class=""> <img class="order-summery-footer-image" alt="" src="<?php echo e(getStorageImages(path: imagePathProcessing(imageData: $value['image'], path: 'company-reliability'), type: 'source', source: theme_asset(path: 'public/assets/front-end/img') . '/' . $value['item'] . '.png')); ?>"> <div class="deal-title"><?php echo e(translate($value['title'])); ?></div> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endif; ?> <div class="pt-4"> <?php if(str_contains(request()->url(), 'checkout-payment')): ?> <label class="custom-control custom-checkbox mb-3 d-flex user-select-none cursor-pointer"> <input type="checkbox" class="custom-control-input payment-input-checkbox"> <span class="custom-control-label"> <span><?php echo e(translate('i_agree_to_Your')); ?></span> <a class="font-size-sm text-primary d-inline" target="_blank" href="<?php echo e(route('business-page.view', ['slug' => 'terms-and-conditions'])); ?>"> <?php echo e(translate('terms_and_condition')); ?> </a> <?php $__currentLoopData = $web_config['business_pages']->where('default_status', 1); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $businessPage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($businessPage['slug'] == 'privacy-policy' || $businessPage['slug'] == 'refund-policy'): ?> <a class="font-size-sm text-primary d-inline" target="_blank" href="<?php echo e(route('business-page.view', ['slug' => $businessPage['slug']])); ?>"> , <?php echo e(translate(str_replace('-', '_', $businessPage['slug']))); ?> </a> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </span> </label> <?php endif; ?> <a class="btn btn--primary btn-block proceed_to_next_button <?php echo e($cart->count() <= 0 ? 'custom-disabled' : ''); ?> action-checkout-function"> <?php echo e(translate('proceed_to_Checkout')); ?> </a> </div> <div class="d-flex justify-content-center mt-3"> <a href="<?php echo e(route('home')); ?>" class="d-flex align-items-center gap-2 text-primary font-weight-bold"> <i class="tio-back-ui fs-12"></i> <?php echo e(translate('continue_Shopping')); ?> </a> </div> </div> </aside> <div class="bottom-sticky3 bg-white p-3 shadow-sm w-100 d-lg-none"> <div class="d-flex justify-content-center align-items-center fs-14 mb-2"> <div class="product-description-label fw-semibold text-capitalize"><?php echo e(translate('total_price')); ?> :</div> <strong class="text-base"> <?php echo e(webCurrencyConverter(amount: $subTotal + ($totalTax['item_tax'] + $totalTax['shipping_cost_tax']) + $totalShippingCost - $coupon_dis - $totalDiscountOnProduct)); ?> </strong> </div> <?php if(str_contains(request()->url(), 'checkout-payment')): ?> <label class="custom-control custom-checkbox mb-3 d-flex user-select-none cursor-pointer"> <input type="checkbox" class="custom-control-input payment-input-checkbox"> <span class="custom-control-label"> <span><?php echo e(translate('i_agree_to_Your')); ?></span> <a class="font-size-sm text-primary d-inline" target="_blank" href="<?php echo e(route('business-page.view', ['slug' => 'terms-and-conditions'])); ?>"> <?php echo e(translate('terms_and_condition')); ?> </a> <?php $__currentLoopData = $web_config['business_pages']->where('default_status', 1); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $businessPage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($businessPage['slug'] == 'privacy-policy' || $businessPage['slug'] == 'refund-policy'): ?> <a class="font-size-sm text-primary d-inline" target="_blank" href="<?php echo e(route('business-page.view', ['slug' => $businessPage['slug']])); ?>"> , <?php echo e(translate(str_replace('-', '_', $businessPage['slug']))); ?> </a> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </span> </label> <?php endif; ?> <a data-route="<?php echo e(Route::currentRouteName()); ?>" class="btn btn--primary btn-block proceed_to_next_button text-capitalize <?php echo e($cart->count() <= 0 ? 'custom-disabled' : ''); ?> action-checkout-function"> <?php echo e(translate('proceed_to_checkout')); ?> </a> </div> <?php $__env->startPush('script'); ?> <script> "use strict"; $(document).ready(function() { orderSummaryStickyFunction() }); </script> <?php $__env->stopPush(); ?>