관리-도구
편집 파일: 86c689a0af46f76e1c3321ff9b1d8748.php
<?php $backendSetting = get_theme_option(key: 'backend_general') ?? null; $currency = $backendSetting['currency'] ?? 'USD-$'; $currencySymbol = get_currency_symbol($currency); ?> <div class="col-span-full lg:col-span-4"> <div class="bg-primary-50 p-6 rounded-xl"> <form class="get-form" method="get" action="<?php echo e(route('apply.coupon')); ?>"> <h6 class="text-xl text-heading dark:text-white !leading-none font-bold"> <?php echo e(translate('Coupon Code')); ?> </h6> <div class="flex mt-4"> <input type="text" placeholder="<?php echo e(translate('Coupon Code')); ?>" id="coupon_code" class="bg-white text-heading dark:text-white h-12 rounded-r-none rounded-l-full rtl:rounded-l-none rtl:rounded-r-full px-4 focus:outline-none w-full max-w-full grow"> <button type="submit" class="btn b-solid btn-primary-solid rounded-l-none rtl:rounded-l-full rounded-r-full rtl:rounded-r-none"> <?php echo e(translate('Apply')); ?> </button> </div> </form> <table class="w-full my-7"> <caption class="text-xl text-heading dark:text-white !leading-none font-bold text-left rtl:text-right mb-5"> <?php echo e(translate('Cart Total')); ?> </caption> <tbody class="divide-y divide-border border-t border-border"> <tr> <td class="px-1 py-4 text-left rtl:text-right"> <div class="flex items-center gap-2 area-description text-heading/70 !leading-none shrink-0"> <span class="text-heading dark:text-white mb-0.5"> <?php echo e(translate('Subtotal')); ?> </span> </div> </td> <td class="px-1 py-4 text-right rtl:text-left"> <div class="text-heading/70 font-semibold leading-none" id="subTotal"> <?php echo e($currencySymbol); ?><?php echo e($data['totalPrice']); ?> </div> </td> </tr> <tr id="discount-area"> <?php if($data['discountAmount']): ?> <td class="px-1 py-4 text-left rtl:text-right"> <div class="flex items-center gap-2 area-description text-heading/70 !leading-none shrink-0"> <span class="text-heading dark:text-white mb-0.5"><?php echo e(translate('Discount')); ?> (-)</span> </div> </td> <td class="px-1 py-4 text-right rtl:text-left" id="discount-area"> <div class="text-heading/70 font-semibold leading-none"> <?php echo e($currencySymbol); ?><?php echo e($data['discountAmount']); ?></div> </td> <?php endif; ?> </tr> <tr> <td class="px-1 py-4 text-left rtl:text-right"> <div class="flex items-center gap-2 area-description text-heading/70 !leading-none shrink-0"> <span class="text-heading dark:text-white text-lg font-bold mb-0.5"> <?php echo e(translate('Total')); ?> </span> </div> </td> <td class="px-1 py-4 text-right rtl:text-left"> <div class="text-primary text-lg font-bold leading-none" id="grand_total"> <?php $totalPrice = $data['discountAmount'] ? $data['totalPrice'] - $data['discountAmount'] : $data['totalPrice']; ?> <?php echo e($currencySymbol); ?><?php echo e($totalPrice); ?> </div> </td> </tr> </tbody> </table> <?php if(authCheck()): ?> <a href="<?php echo e(route('checkout.page')); ?>" aria-label="Checkout" class="btn b-solid btn-primary-solid btn-xl !rounded-full w-full h-12"> <?php echo e(translate('Checkout')); ?> <i class="ri-arrow-right-line rtl:before:content-['\ea60'] text-[20px]"></i> </a> <?php else: ?> <a href="#" class="btn b-solid btn-primary-solid btn-xl !rounded-full w-full h-12 auth-login" aria-label="Checkout"> <?php echo e(translate('Checkout')); ?> <i class="ri-arrow-right-line rtl:before:content-['\ea60'] text-[20px]"></i> </a> <?php endif; ?> </div> </div> <?php /**PATH D:\www\edulab\Modules\LMS\resources\views\components\carts\cart-sidebar.blade.php ENDPATH**/ ?>