⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.220
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
3a3dc42e719d94cc9ce343509bc0088c.php
<?php $planprice = !empty($plan) ? $plan->package_price_monthly : 0; $planpriceyearly = !empty($plan) ? $plan->package_price_yearly : 0; $currancy_symbol = admin_setting('defult_currancy_symbol'); $plan_modules = explode(',',$plan->modules); $currency_setting = json_encode(Arr::only(getAdminAllSetting(), ['site_currency_symbol_position','currency_format','currency_space','site_currency_symbol_name','defult_currancy_symbol','defult_currancy','float_number','decimal_separator','thousand_separator'])); ?> <?php $__env->startSection('page-title'); ?> <?php echo e(__('Plan Payment')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-breadcrumb'); ?> <?php echo e(__('Plan Payment')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-action'); ?> <div> <a href="<?php echo e(route('active.plans')); ?>" class="btn-submit btn btn-sm btn-primary " data-toggle="tooltip" title="<?php echo e(__('Back')); ?>"> <i class=" ti ti-arrow-back-up"></i> </a> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <!-- [ Main Content ] start --> <div class="row"> <div class="col-sm-12"> <div class="row"> <div class="col-xxl-8 col-xl-7"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body package-card-inner d-flex align-items-center"> <div class="package-itm theme-avtar border border-secondary"> <img src="<?php echo e((!empty(admin_setting('favicon')) && check_file(admin_setting('favicon'))) ? get_file(admin_setting('favicon')) : get_file('uploads/logo/favicon.png')); ?><?php echo e('?'.time()); ?>" alt=""> </div> <div class="package-content flex-grow-1 px-3"> <h4><?php echo e($plan->name); ?></h4> <div class="text-muted"> <a href="#activated-add-on"><?php echo e(__(count($plan_modules).' Premium Add-on')); ?></a></div> </div> <div class="price text-end"> <ins class="plan-price-text"><?php echo e(super_currency_format_with_sym($planprice)); ?></ins> <span class="time-lbl text-muted plan-time-text"><?php echo e(__('/Month')); ?></span> </div> </div> </div> </div> <?php if((count($plan_modules) > 0) &&( count($modules) > 0)): ?> <h5 class="mb-1" id="add-on-list"><?php echo e(__('Modules')); ?></h5> <?php $__currentLoopData = $modules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $module): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(in_array($module->name,$plan_modules)): ?> <?php if(!isset($module->display) || $module->display == true): ?> <div class="col-xxl-3 col-xl-4 col-lg-6 col-sm-6 product-card "> <div class="product-card-inner"> <div class="card active_module"> <div class="product-img"> <div class="theme-avtar"> <img src="<?php echo e($module->image); ?>" alt="<?php echo e($module->name); ?>" class="img-user" style="max-width: 100%"> </div> </div> <div class="product-content"> <h4> <?php echo e($module->alias); ?></h4> <p class="text-muted text-sm mb-0"> <?php echo e($module->description ?? ''); ?> </p> <a href="<?php echo e(route('software.details',$module->alias)); ?>" target="_new" class="btn btn-outline-secondary w-100 mt-2"><?php echo e(__('View Details')); ?></a> </div> </div> </div> </div> <?php endif; ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <div class="col-lg-12 col-md-12"> <div class="card p-5"> <div class="d-flex justify-content-center"> <div class="ms-3 text-center"> <h3><?php echo e(__('Add-on Not Available')); ?></h3> <p class="text-muted"><?php echo e(__('Click ')); ?><a href="<?php echo e(url('/')); ?>"><?php echo e(__('here')); ?></a> <?php echo e(__('to back home')); ?></p> </div> </div> </div> </div> <?php endif; ?> </div> </div> <div class="col-xxl-4 col-xl-5"> <div class="card subscription-counter"> <div class="card-header d-flex justify-content-between"> <h5 class="mt-1"><?php echo e($plan->name); ?></h5> <label class="switch "> <span class="lbl time-monthly text-primary"><?php echo e(__('Monthly')); ?></span> <input type="checkbox" <?php echo e(((isset($session) && !empty($session) && ($session['time_period'] == 'Year'))) ? 'checked' :''); ?> name="time-period" class="switch-change"> <span class="slider round"></span> <span class="lbl time-yearly"><?php echo e(__('Yearly')); ?></span> </label> </div> <div class="card-body"> <div class="row coupon_section"> <div class="col-sm-12 col-lg-12 col-md-12"> <div class="d-flex align-items-center"> <div class="form-group w-100"> <label for="coupon" class="form-label"><?php echo e(__('Coupon')); ?></label> <input type="text" id="coupon" name="coupon" class="form-control coupon" placeholder="Enter Coupon Code"> </div> <div class="form-group ms-3 mt-4 apply-coupon"> <button type="button" class="btn btn-primary" data-bs-toggle="tooltip" data-bs-original-title="<?php echo e(__('Apply')); ?>" id="coupon-apply" ><i class="ti ti-square-check btn-apply "></i></button> </div> </div> </div> </div> <div class="subscription-summery"> <div class=""> <span class="cart-sum-left"><h6 class=""><?php echo e(__('Payment Method')); ?>:</h6></span> <div class="row"> <?php if(admin_setting('bank_transfer_payment_is_on') == 'on' ): ?> <div class="col-sm-12 col-lg-12 col-md-12"> <div class="card"> <div class="card-body p-3"> <div class="d-flex align-items-center justify-content-between"> <div class="d-flex align-items-center"> <div class=""> <label for="bank-payment"> <h5 class="mb-0 text-capitalize pointer"><?php echo e(__('Bank Transfer')); ?></h5> </label> </div> </div> <div class="form-check"> <input class="form-check-input payment_method" name="payment_method" id="bank-payment" type="radio" data-payment-action="<?php echo e(route('plan.pay.with.bank')); ?>"> </div> </div> <div class="row mt-2"> <div class="col-sm-8"> <div class="form-group"> <label class="form-label"><?php echo e(__('Bank Details :')); ?></label> <p class=""> <?php echo admin_setting('bank_number'); ?> </p> </div> </div> <div class="col-sm-4"> <div class="form-group"> <label class="form-label"><?php echo e(__('Payment Receipt')); ?></label> <div class="choose-files text-end"> <label for="temp_receipt"> <div class=" bg-primary "> <i class="ti ti-upload px-1"></i></div> <input type="file" class="form-control temp_receipt" accept="image/png, image/jpeg, image/jpg, .pdf" name="temp_receipt" id="temp_receipt" data-filename="temp_receipt" onchange="document.getElementById('blah3').src = window.URL.createObjectURL(this.files[0])"> </label> <p class="text-danger error_msg d-none"><?php echo e(__('This field is required')); ?></p> <img class="mt-2" width="70px" src="" id="blah3"> </div> <div class="invalid-feedback"><?php echo e(__('invalid form file')); ?></div> </div> </div> <small class="text-danger"><?php echo e(__('first, make a payment and take a screenshot or download the receipt and upload it.')); ?></small> </div> </div> </div> </div> <?php endif; ?> <?php echo $__env->yieldPushContent('company_plan_payment'); ?> </div> <div class="cart-footer-total-row bg-primary text-white rounded p-3 d-flex align-items-center justify-content-between"> <div class="mini-total-price"> <div class="price"> <h3 class="text-white mb-0 total"><?php echo e(super_currency_format_with_sym($planprice)); ?></h3> <span class="time-lbl plan-time-text"><?php echo e(__('/Month')); ?></span> </div> </div> <?php echo e(Form::open(array('','method'=>'post','id'=>'payment_form','enctype' => 'multipart/form-data'))); ?> <input type="hidden" name="user_counter_input" value="<?php echo e(!empty($plan->number_of_user) ? $plan->number_of_user: -1); ?>" class="user_counter_input"> <input type="hidden" name="workspace_counter_input" value="<?php echo e(!empty($plan->number_of_workspace) ? $plan->number_of_workspace : -1); ?>" class="workspace_counter_input"> <input type="hidden" name="user_module_input" value="<?php echo e($plan->modules); ?>" name="user_module_input" class="user_module_input"> <input type="hidden" name="userprice_input" value="0" class="userprice_input"> <input type="hidden" name="user_module_price_input" value="0" class="user_module_price_input"> <input type="hidden" name="time_period" value="Month" class="time_period_input"> <input type="hidden" name="coupon_code" value="" class="coupon_code"> <input type="hidden" name="plan_id" value="<?php echo e($plan->id); ?>" class="plan_id"> <div class="text-end form-btn"> </div> <?php echo e(Form::close()); ?> </div> <div class="cart-reset text-center mt-3"> <a href="<?php echo e(route('module.reset')); ?>" class="reset-btn"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"> <path d="M6 0.625C3.036 0.625 0.625 3.0365 0.625 6C0.625 8.9635 3.036 11.375 6 11.375C8.964 11.375 11.375 8.9635 11.375 6C11.375 3.0365 8.964 0.625 6 0.625ZM6 10.625C3.4495 10.625 1.375 8.5505 1.375 6C1.375 3.4495 3.4495 1.375 6 1.375C8.5505 1.375 10.625 3.4495 10.625 6C10.625 8.5505 8.5505 10.625 6 10.625ZM7.765 4.76501L6.53 6L7.765 7.23499C7.9115 7.38149 7.9115 7.619 7.765 7.7655C7.692 7.8385 7.596 7.87549 7.5 7.87549C7.404 7.87549 7.308 7.839 7.235 7.7655L6 6.53049L4.765 7.7655C4.692 7.8385 4.596 7.87549 4.5 7.87549C4.404 7.87549 4.308 7.839 4.235 7.7655C4.0885 7.619 4.0885 7.38149 4.235 7.23499L5.47 6L4.235 4.76501C4.0885 4.61851 4.0885 4.381 4.235 4.2345C4.3815 4.088 4.619 4.088 4.7655 4.2345L6.0005 5.46951L7.2355 4.2345C7.382 4.088 7.61951 4.088 7.76601 4.2345C7.91151 4.381 7.9115 4.61901 7.765 4.76501Z" fill="#737373"></path> </svg><?php echo e(__('Reset')); ?></a> </div> </div> </div> </div> </div> </div> </div> </div> <!-- [ sample-page ] end --> </div> <!-- [ Main Content ] end --> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts'); ?> <script> $(document).ready(function() { var planprice = '<?php echo e($planprice); ?>'; if(planprice == 0){ $(".coupon_section").addClass("d-none"); }else{ $(".coupon_section").removeClass("d-none"); } if ($('.switch-change').prop('checked')==true) { planprice = '<?php echo e($planpriceyearly); ?>'; } var user = parseInt($('.user_counter_input').val()); var currancy_symbol = '<?php echo e($currancy_symbol); ?>'; $(".total").text(formatCurrency(planprice,'<?php echo e($currency_setting); ?>')); }); $(document).on("click", ".user_module_check", function() { if ($(this).closest(".user_module").hasClass("active_module")) { $(this).closest(".user_module").removeClass("active_module"); } else { $(this).closest(".user_module").addClass("active_module"); } ChangeModulePrice(); ChangePrice(); }); $(document).on("click","#coupon-apply",function() { var coupon = $('#coupon').val(); var duration = $('.time_period_input').val(); var plan_id = '<?php echo e($plan->id); ?>'; if(coupon == ''){ toastrs('Error', "<?php echo e(__('Coupon code required.')); ?>", 'error'); }else{ $.ajax({ url: '<?php echo e(route('apply.coupon')); ?>', type: 'GET', data: { "plan_id": plan_id, "coupon": coupon, "duration": duration, "_token": "<?php echo e(csrf_token()); ?>", }, success: function(data) { if (data != '' ) { if (data.is_success == true) { var currancy_symbol = '<?php echo e($currancy_symbol); ?>'; var finalPrice = data.final_price + currancy_symbol; var planprice = '<?php echo e($planprice); ?>'; $('.total').html('<span class="original-price">' + formatCurrency(planprice,'<?php echo e($currency_setting); ?>')+ '</span> / ' + '<span class="">'+finalPrice + '</span>'); // Apply text-decoration: line-through to the original price $('.original-price').css("text-decoration", "line-through"); $('.coupon_code').val(coupon); toastrs('success', data.message, 'success'); } else { $('.coupon_code').val(""); toastrs('Error', data.message, 'error'); } } else { toastrs('Error', "<?php echo e(__('Coupon code required.')); ?>", 'error'); } } }); } }); </script> <script> $(document).on('keyup mouseup', '#user_counter', function() { var user_counter = parseInt($(this).val()); if (user_counter <= 0 || user_counter > 1000 || $(this).val() == '') { $(this).val(0) var user_counter = 0; } $(".user_counter_text").text(user_counter); $(".user_counter_input").val(user_counter); ChangePrice(user_counter) }); </script> <script> function ChangePrice(user = null, user_module_price = 0) { var planprice = '<?php echo e($planprice); ?>'; if ($('.switch-change').prop('checked')==true) { planprice = '<?php echo e($planpriceyearly); ?>'; } var currancy_symbol = '<?php echo e($currancy_symbol); ?>'; if (user == null) { var user = parseInt($('.user_counter_input').val()); } if (user_module_price == 0) { var user_module_price = parseFloat($('.user_module_price_input').val()); } $(".total").text(formatCurrency(planprice,'<?php echo e($currency_setting); ?>')); } function ChangeModulePrice() { var user_module_input = new Array(); var user_module_price = parseFloat(0); var currancy_symbol = '<?php echo e($currancy_symbol); ?>'; var n = jQuery(".user_module_check:checked").length; var time = '/Month'; if ($('.switch-change').prop('checked')==true) { time = '/Year'; } $("#extension_div").empty(); if (n > 0) { jQuery(".user_module_check:checked").each(function() { var alias = $(this).attr('data-module-alias'); var img = $(this).attr('data-module-img'); var price = parseFloat($(this).attr('data-module-price-monthly')); if ($('.switch-change').prop('checked')==true) { price = parseFloat($(this).attr('data-module-price-yearly')); } $("#extension_div").append(`<div class="col-md-6 col-sm-6 my-2"> <div class="d-flex align-items-start"> <div class="theme-avtar"> <img src="` + img + `" alt="` + img + `" class="img-user" style="max-width: 100%"> </div> <div class="ms-2"> <p class="text-muted text-sm mb-0 text-capitalize">` + alias + `</p> <h4 class="mb-0 text-primary">` + price + currancy_symbol + `<span class="text-sm">`+time+`</span></h4> </div> </div> </div>`); user_module_input.push($(this).val()); user_module_price = user_module_price + price; }); } $(".module_counter_text").text(n); $(".module_price_text").text(formatCurrency(user_module_price,'<?php echo e($currency_setting); ?>')); // $(".user_module_input").val(user_module_input); $(".user_module_price_input").val(user_module_price); } /********* qty spinner ********/ var quantity = 0; $('.quantity-increment').click(function() { var t = $(this).siblings('.quantity'); var quantity = parseInt($(t).val()); if(quantity < 1000 || $(this).val() != '') { $(t).val(quantity + 1); $(".user_counter_text").text(quantity + 1); $(".user_counter_input").val(quantity + 1); } else { $(t).val(1000); $(".user_counter_text").text(1000); $(".user_counter_input").val(1000); } ChangePrice() }); $('.quantity-decrement').click(function() { var t = $(this).siblings('.quantity'); var quantity = parseInt($(t).val()); if(quantity > 1) { $(t).val(quantity - 1); $(".user_counter_text").text(quantity - 1); $(".user_counter_input").val(quantity - 1); } else { $(t).val(0); $(".user_counter_text").text(0); $(".user_counter_input").val(0); } ChangePrice() }); </script> <script> $(document).on("click",".switch-change",function() { SwitchChange() }); function SwitchChange() { var planprice = '<?php echo e($planprice); ?>'; var currancy_symbol = '<?php echo e($currancy_symbol); ?>'; var user = parseInt($('.user_counter_input').val()); var time = '/Month'; if ($('.switch-change').prop('checked') == true) { $(".time-monthly").removeClass("text-primary"); $(".time-yearly").addClass("text-primary"); $(".m-price-yearly").removeClass("d-none"); $(".m-price-monthly").addClass("d-none"); planprice = '<?php echo e($planpriceyearly); ?>'; time = '/Year'; $(".time_period_input").val('Year'); } else { $(".time-yearly").removeClass("text-primary"); $(".time-monthly").addClass("text-primary"); $(".m-price-monthly").removeClass("d-none"); $(".m-price-yearly").addClass("d-none"); $(".time_period_input").val('Month'); } $(".plan-price-text").text(formatCurrency(planprice,'<?php echo e($currency_setting); ?>')); $(".plan-time-text").text(time); ChangeModulePrice() ChangePrice() } </script> <script> $(document).ready(function () { var numItems = $('.payment_method').length if(numItems > 0) { $('.form-btn').append('<button type="submit" class="btn btn-dark payment-btn" ><?php echo e(__("Buy Now")); ?></button>'); setTimeout(() => { $(".payment_method").first().attr('checked', true); $(".payment_method").first().trigger('click'); }, 200); } else { $('.form-btn').append("<span class='text-danger'><?php echo e(__('Admin payment settings not set')); ?></span>"); } }); $( "#payment_form" ).on( "submit", function( event ) { "<?php echo e(session()->put('Subscription','plan_subscription')); ?>"; }); $(document).on("click",".payment_method",function() { var payment_action = $(this).attr("data-payment-action"); if(payment_action != '' && payment_action != undefined) { $("#payment_form").attr("action",payment_action); } else { $("#payment_form").attr("action",''); } if ($('#bank-payment').prop('checked')) { $(".temp_receipt").attr("required", "required"); } else { $(".temp_receipt").removeAttr("required"); } }); </script> <?php if(isset($session) && !empty($session)): ?> <script> $(document).ready(function () { $('#user_counter').val("<?php echo e($session['user_counter']); ?>"); $('#user_counter').trigger('keyup') SwitchChange(); }); </script> <?php endif; ?> <?php if(admin_setting('bank_transfer_payment_is_on') == 'on'): ?> <script> $('#payment_form').submit(function(e) { if ($('#bank-payment').prop('checked')) { e.preventDefault(); // Prevent form submission var file = document.getElementById('temp_receipt').files[0]; if(file != undefined) { $('.error_msg').addClass('d-none'); // Create a new FormData object const formData = new FormData(); // Add file data from the file input element const file = $('#temp_receipt')[0].files[0]; formData.append('payment_receipt', file, file.name); // Add data from the form's input elements $('#payment_form input').each(function() { formData.append(this.name, this.value); }); var url = $('#payment_form').attr('action'); $.ajax({ url: url, type: 'POST', data: formData, processData: false, contentType: false, success: function(response) { if(response.status == 'success') { toastrs('Success', response.msg, 'success'); setTimeout(() => { location.reload(); }, 1000); } else { toastrs('Error', response.msg, 'error'); } // Handle success response }, error: function(xhr, status, error) { toastrs('Error',error, 'error'); // Handle error response } }); } else { $('.error_msg').removeClass('d-none'); } } }); </script> <?php endif; ?> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/erp.dev-unit.com/resources/views/plans/planpayment.blade.php ENDPATH**/ ?>