Viewing file: 60df700cd9f0f5b3ee663052f04a03c0.php (26.85 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag; ?> <?php foreach($attributes->onlyProps(['manualpayments', 'plan', 'midtoken', 'walletbalance', 'currentplan']) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> <?php $attributes = $attributes->exceptProps(['manualpayments', 'plan', 'midtoken', 'walletbalance', 'currentplan']); ?> <?php foreach (array_filter((['manualpayments', 'plan', 'midtoken', 'walletbalance', 'currentplan']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> <?php $__defined_vars = get_defined_vars(); ?> <?php foreach ($attributes as $__key => $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } ?> <?php unset($__defined_vars); ?>
<div class="container"> <?php if($walletbalance && $walletbalance > $plan->price): ?> <div class="grid md:grid-cols-2 gap-6 mt-6"> <h2 class="heading-05 col-span-full dark:text-gray-50"><?php echo e(__('wallet_payment')); ?></h2>
<div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class=""> <form action="<?php echo e(route('wallet.plan.payment')); ?>" method="POST"> <?php echo csrf_field(); ?> <h2 class="heading-06"><?php echo e(__('balance')); ?>: $<?php echo e($walletbalance); ?></h2> <button class="btn btn-primary mt-3"> <?php echo e(__('pay_now')); ?>
</button> </form> </div> </div> </div> </div> <?php endif; ?> <div class="grid md:grid-cols-2 gap-6 mt-6"> <h2 class="heading-05 col-span-full dark:text-gray-50"><?php echo e(__('online_payment')); ?></h2> <?php if(config('paypal.mode') == 'sandbox'): ?> <?php if(config('paypal.active') && config('paypal.sandbox.client_id') && config('paypal.sandbox.client_secret')): ?> <div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <?php if (isset($component)) { $__componentOriginaldbb30f3233d1fa74cff5f58fdbf29fe2 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaldbb30f3233d1fa74cff5f58fdbf29fe2 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.paypal-icon','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.paypal-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::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($__attributesOriginaldbb30f3233d1fa74cff5f58fdbf29fe2)): ?> <?php $attributes = $__attributesOriginaldbb30f3233d1fa74cff5f58fdbf29fe2; ?> <?php unset($__attributesOriginaldbb30f3233d1fa74cff5f58fdbf29fe2); ?> <?php endif; ?> <?php if (isset($__componentOriginaldbb30f3233d1fa74cff5f58fdbf29fe2)): ?> <?php $component = $__componentOriginaldbb30f3233d1fa74cff5f58fdbf29fe2; ?> <?php unset($__componentOriginaldbb30f3233d1fa74cff5f58fdbf29fe2); ?> <?php endif; ?> </div> <div class=""> <h2 class="heading-06"><?php echo e(__('paypal_payment')); ?></h2> <button id="paypal_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> </div> </div> </div> <?php endif; ?> <?php else: ?> <?php if(config('paypal.active') && config('paypal.live.client_id') && config('paypal.live.client_secret')): ?> <div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <?php if (isset($component)) { $__componentOriginaldbb30f3233d1fa74cff5f58fdbf29fe2 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaldbb30f3233d1fa74cff5f58fdbf29fe2 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.paypal-icon','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.paypal-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::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($__attributesOriginaldbb30f3233d1fa74cff5f58fdbf29fe2)): ?> <?php $attributes = $__attributesOriginaldbb30f3233d1fa74cff5f58fdbf29fe2; ?> <?php unset($__attributesOriginaldbb30f3233d1fa74cff5f58fdbf29fe2); ?> <?php endif; ?> <?php if (isset($__componentOriginaldbb30f3233d1fa74cff5f58fdbf29fe2)): ?> <?php $component = $__componentOriginaldbb30f3233d1fa74cff5f58fdbf29fe2; ?> <?php unset($__componentOriginaldbb30f3233d1fa74cff5f58fdbf29fe2); ?> <?php endif; ?> </div> <div class=""> <h2 class="heading-06"><?php echo e(__('paypal_payment')); ?></h2> <button id="paypal_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> </div> </div> </div> <?php endif; ?> <?php endif; ?>
<?php if(config('templatecookie.stripe_active') && config('templatecookie.stripe_key') && config('templatecookie.stripe_secret')): ?> <div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <?php if (isset($component)) { $__componentOriginal0c9c10d17b3c3c271a16dbc21688f5c8 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal0c9c10d17b3c3c271a16dbc21688f5c8 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.stripe-icon','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.stripe-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::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($__attributesOriginal0c9c10d17b3c3c271a16dbc21688f5c8)): ?> <?php $attributes = $__attributesOriginal0c9c10d17b3c3c271a16dbc21688f5c8; ?> <?php unset($__attributesOriginal0c9c10d17b3c3c271a16dbc21688f5c8); ?> <?php endif; ?> <?php if (isset($__componentOriginal0c9c10d17b3c3c271a16dbc21688f5c8)): ?> <?php $component = $__componentOriginal0c9c10d17b3c3c271a16dbc21688f5c8; ?> <?php unset($__componentOriginal0c9c10d17b3c3c271a16dbc21688f5c8); ?> <?php endif; ?> </div> <div class=""> <h2 class="heading-06"><?php echo e(__('stripe_payment')); ?></h2> <button id="stripe_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> </div> </div> </div> <?php endif; ?>
<?php if(config('templatecookie.razorpay_active') && config('templatecookie.razorpay_key') && config('templatecookie.razorpay_secret')): ?> <div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <img src="<?php echo e(asset('frontend/images/payment/razorpay.svg')); ?>" alt=""> </div> <div class=""> <h2 class="heading-06"><?php echo e(__('razor_payment')); ?></h2> <button id="razorpay_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> </div> </div> </div> <?php endif; ?>
<?php if(config('templatecookie.ssl_active') && config('templatecookie.store_id') && config('templatecookie.store_password')): ?> <div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <img src="<?php echo e(asset('frontend/images/payment/ssl.jpeg')); ?>" alt=""> </div> <div class=""> <h2 class="heading-06"><?php echo e(__('sslcommerz_payment')); ?></h2> <button type="button" id="ssl_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> </div> </div> </div> <?php endif; ?>
<?php if(config('templatecookie.paystack_active') && config('templatecookie.paystack_public_key') && config('templatecookie.paystack_secret_key')): ?> <div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <img src="<?php echo e(asset('frontend/images/payment/paystack.png')); ?>" alt=""> </div> <div class=""> <h2 class="heading-06"><?php echo e(__('paystack_payment')); ?></h2> <?php if(config('templatecookie.currency') == 'USD' || config('templatecookie.currency') == 'NGN'): ?> <button id="paystack_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> <?php else: ?> <p class="text-red-500"><?php echo e(__('paystack_does_not_support')); ?>
<?php echo e(config('templatecookie.currency')); ?></p> <?php endif; ?> </div> </div> </div> <?php endif; ?>
<?php if(config('templatecookie.flw_active') && config('templatecookie.flw_public_key') && config('templatecookie.flw_secret_key') && config('templatecookie.flw_secret_hash')): ?> <div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <img height="80px" width="80px" src="<?php echo e(asset('frontend/images/payment/Flutterwave-logo.png')); ?>" alt=""> </div> <div class=""> <h2 class="heading-06"><?php echo e(__('flutterwave_payment')); ?></h2> <button id="flutterwave_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> </div> </div> </div> <?php endif; ?>
<?php if(config('templatecookie.im_active') && config('templatecookie.im_key') && config('templatecookie.im_secret') && config('templatecookie.im_url')): ?> <div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <img height="20px" width="20px" src="<?php echo e(asset('frontend/images/payment/insta.png')); ?>" alt=""> </div> <div class=""> <h2 class="heading-06"><?php echo e(__('instamojo_payment')); ?></h2> <button id="instamojo_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> </div> </div> </div> <?php endif; ?>
<?php if(config('templatecookie.midtrans_active') && config('templatecookie.midtrans_merchat_id') && config('templatecookie.midtrans_client_key') && config('templatecookie.midtrans_server_key')): ?> <div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <img height="20px" width="20px" src="<?php echo e(asset('frontend/images/payment/midtrans.jpeg')); ?>" alt=""> </div> <div class=""> <h2 class="heading-06"><?php echo e(__('midtrans_payment')); ?></h2> <button id="midtrans_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> </div> </div> </div> <?php endif; ?>
<?php if(config('templatecookie.mollie_key') && config('templatecookie.mollie_active')): ?> <div class="bg-white rounded-lg shadow-sm p-8"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <img height="20px" width="20px" src="<?php echo e(asset('frontend/images/payment/mollie.png')); ?>" alt=""> </div> <div class=""> <h2 class="heading-06"><?php echo e(__('mollie_payment')); ?></h2> <button id="mollie_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> </div> </div> </div> <?php endif; ?> </div> <?php if($manualpayments && count($manualpayments)): ?> <div class="grid md:grid-cols-2 gap-6 mt-6"> <h2 class="heading-05 col-span-full dark:text-gray-50"><?php echo e(__('offline_payment')); ?></h2>
<?php $__currentLoopData = $manualpayments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="bg-white rounded-lg shadow-sm p-8"> <form action="<?php echo e(route('manual.payment')); ?>" method="post"> <?php echo csrf_field(); ?> <input type="hidden" name="payment_id" value="<?php echo e($payment->id); ?>"> <div class="flex gap-6 items-start"> <div class="bg-primary-50 w-14 h-14 rounded-full inline-flex justify-center items-center"> <?php if (isset($component)) { $__componentOriginal0c9c10d17b3c3c271a16dbc21688f5c8 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal0c9c10d17b3c3c271a16dbc21688f5c8 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.stripe-icon','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.stripe-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::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($__attributesOriginal0c9c10d17b3c3c271a16dbc21688f5c8)): ?> <?php $attributes = $__attributesOriginal0c9c10d17b3c3c271a16dbc21688f5c8; ?> <?php unset($__attributesOriginal0c9c10d17b3c3c271a16dbc21688f5c8); ?> <?php endif; ?> <?php if (isset($__componentOriginal0c9c10d17b3c3c271a16dbc21688f5c8)): ?> <?php $component = $__componentOriginal0c9c10d17b3c3c271a16dbc21688f5c8; ?> <?php unset($__componentOriginal0c9c10d17b3c3c271a16dbc21688f5c8); ?> <?php endif; ?> </div> <div class=""> <h2 class="heading-06"><?php echo e($payment->name); ?></h2> <p class="body-small-400 mt-1"><?php echo $payment->description; ?></p> <button id="manual_payment_btn" class="mt-3 btn-primary"> <?php echo e(__('pay_now')); ?>
</button> </div> </div> </form> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?>
<form action="<?php echo e(route('paypal.post')); ?>" method="POST" class="hidden" id="paypal-form"> <?php echo csrf_field(); ?> </form>
<form action="<?php echo e(route('stripe.post')); ?>" method="POST" class="hidden"> <?php echo csrf_field(); ?> <script id="stripe_script" src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="<?php echo e(config('templatecookie.stripe_key')); ?>" data-amount="<?php echo e(session('stripe_amount')); ?>" data-name="<?php echo e(config('app.name')); ?>" data-description="Money pay with stripe" data-locale="<?php echo e(app()->getLocale() == 'default' ? 'en' : app()->getLocale()); ?>" data-currency="USD"></script> </form>
<form action="<?php echo e(route('razorpay.post')); ?>" method="POST" class="hidden"> <?php echo csrf_field(); ?> <script id="razor_script" src="https://checkout.razorpay.com/v1/checkout.js" data-key="<?php echo e(config('templatecookie.razorpay_key')); ?>" data-amount="<?php echo e(session('razor_amount')); ?>" data-buttontext="Pay with Razorpay" data-name="<?php echo e(config('app.name')); ?>" data-description="Money pay with razorpay" data-prefill.name="<?php echo e(auth('user')->user()->name); ?>" data-prefill.email="<?php echo e(auth('user')->user()->email); ?>" data-theme.color="#2980b9" data-currency="INR"></script> </form>
<form action="<?php echo e(route('paystack.post')); ?>" method="POST" class="hidden" id="paystack-form"> <?php echo csrf_field(); ?> </form>
<form method="POST" class="needs-validation hidden" novalidate> <input type="hidden" value="<?php echo e(session('ssl_amount')); ?>" name="amount" id="total_amount" /> <input id="ssl_plan_id" type="hidden" name="plan_id" value="<?php echo e($plan->id); ?>"> <button class="btn btn-primary" id="sslczPayBtn" token="if you have any token validation" postdata="your javascript arrays or objects which requires in backend" order="If you already have the transaction generated for current order" endpoint="<?php echo e(route('ssl.pay')); ?>"> <?php echo e(__('pay_now')); ?>
</button> </form>
<form action="<?php echo e(route('flutterwave.pay')); ?>" method="POST" class="hidden" id="flutter-form"> <?php echo csrf_field(); ?> </form>
<form action="<?php echo e(route('instamojo.pay')); ?>" method="POST" class="hidden" id="instamojo-form"> <?php echo csrf_field(); ?> </form>
<form action="<?php echo e(route('mollie.payment')); ?>" method="POST" class="hidden" id="mollie-form"> <?php echo csrf_field(); ?> </form>
</div>
<?php $__env->startPush('js'); ?> <script src="https://app.sandbox.midtrans.com/snap/snap.js" data-client-key="<?php echo e(config('templatecookie.midtrans_key')); ?>"></script> <script> <?php if($currentplan && $plan && $currentplan->subscription_type != $plan->plan_payment_type): ?> setTimeout(() => { swal({ title: "<?php echo e(__('are_you_sure_to_purchase_this_plan')); ?>", text: "<?php echo e(__('you_already_have_subscription_plan_if_you_purchase_to_this_plan_your_subscription_plan_will_be_cancelled_and_you_will_be_charged_for_this_plan')); ?>", type: "warning", showCancelButton: false, confirmButtonColor: '#3daf29', cancelButtonColor: '#d33', confirmButtonText: "<?php echo e(__('yes_i_am_sure')); ?>", closeOnConfirm: false, }); }, 1000); <?php endif; ?>
document.addEventListener('DOMContentLoaded', function () { $('#paypal_btn').on('click', function (e) { e.preventDefault(); $('#paypal-form').submit(); });
$('#stripe_btn').on('click', function(e) { console.log('data'); e.preventDefault(); $('.stripe-button-el').click(); });
$('#razorpay_btn').on('click', function(e) { e.preventDefault(); $('.razorpay-payment-button').click(); });
$('#paystack_btn').on('click', function(e) { e.preventDefault(); $('#paystack-form').submit(); }); $('#ssl_btn').on('click', function(e) { e.preventDefault(); $('#sslczPayBtn').click(); }); $('#flutterwave_btn').on('click', function(e) { e.preventDefault(); $('#flutter-form').submit(); }); $('#instamojo_btn').on('click', function(e) { e.preventDefault(); $('#instamojo-form').submit(); }); $('#mollie_btn').on('click', function(e) { e.preventDefault(); $('#mollie-form').submit(); }); }); // ssl commerz var obj = {}; obj.amount = $('#total_amount').val(); obj.plan_id = $('#ssl_plan_id').val();
$('#sslczPayBtn').prop('postdata', obj);
(function(window, document) { var loader = function() { var script = document.createElement("script"), tag = document.getElementsByTagName("script")[0]; // script.src = "https://seamless-epay.sslcommerz.com/embed.min.js?" + Math.random().toString(36).substring(7); // USE THIS FOR LIVE script.src = "https://sandbox.sslcommerz.com/embed.min.js?" + Math.random().toString(36).substring( 7); // USE THIS FOR SANDBOX tag.parentNode.insertBefore(script, tag); };
window.addEventListener ? window.addEventListener("load", loader, false) : window.attachEvent("onload", loader); })(window, document);
// Midtrans if ( '<?php echo e(config('templatecookie.midtrans_active ') && config('templatecookie.midtrans_id ') && config('templatecookie.midtrans_key ') && config('templatecookie.midtrans_secret ')); ?>') { const payButton = document.querySelector('#midtrans_btn'); payButton.addEventListener('click', function(e) { e.preventDefault();
snap.pay('<?php echo e($midtoken); ?>', { // Optional onSuccess: function(result) { // console.log(result); successMidtransPayment(); }, // Optional onPending: function(result) { alert('Transaction is in pending state'); }, // Optional onError: function(result) { alert('Transaction is failed. Try again.'); } }); });
function successMidtransPayment() { $.ajax({ type: "post", url: "<?php echo e(route('midtrans.success')); ?>", data: { '_token': '<?php echo e(csrf_token()); ?>' }, success: function(response) { window.location.href = response.redirect_url; } }); } } </script> <?php $__env->stopPush(); ?> <?php /**PATH E:\add listing 8-9-25\addListing\resources\views/components/frontend/plan/onetime-plan.blade.php ENDPATH**/ ?>
|