⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.94
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
storage
/
framework
/
views
/
View File Name :
598a5cf4032b1728c23bce9cd152ef1e.php
<?php $__env->startPush('scripts'); ?> <script> $("#plan_package").click(function() { var plan_package = ($("input[name=plan_package]").is(':checked')) ? $("input[name=plan_package]") .val() : "off"; packages(plan_package, null); }); $("#custome_package").click(function() { var custome_package = ($("input[name=custome_package]").is(':checked')) ? $( "input[name=custome_package]").val() : "off"; packages(null, custome_package); }); function packages(plan_package = null, custome_package = null) { $.ajax({ url: '<?php echo e(route('package.data')); ?>', type: 'POST', data: { "custome_package": custome_package, "plan_package": plan_package, "_token": "<?php echo e(csrf_token()); ?>", }, success: function(data) { console.log(data); if (data.custome_package == 'on' || data.plan_package == 'on') { location.reload(true); } if (data.custome_package == 'off') { var url = '<?php echo e(route('plan.list')); ?>'; window.location.replace(url) } if (data.plan_package == 'off') { var url = '<?php echo e(route('plans.index')); ?>'; window.location.replace(url) } if (data == 'error') { toastrs('Error', 'Both options cannot be disabled at the same time.', 'error'); setTimeout(function() { location.reload(true); }, 2000); } } }); } </script> <script> $(document).on('change', '#is_free_plan', function() { var value = $(this).val(); PlanLable(value); }); $(document).on('change', '#trial', function() { if ($(this).is(':checked')) { $('.plan_div').removeClass('d-none'); $('#trial').attr("required", true); } else { $('.plan_div').addClass('d-none'); $('#trial').removeAttr("required"); } }); $(document).on('keyup mouseup', '#number_of_user', function() { var user_counter = parseInt($(this).val()); if (user_counter == 0 || user_counter < -1) { $(this).val(1) } }); $(document).on('keyup mouseup', '#number_of_workspace', function() { var workspace_counter = parseInt($(this).val()); if (workspace_counter == 0 || workspace_counter < -1) { $(this).val(1) } }); function PlanLable(value){ if(value == 1){ $('.plan_price_div').addClass('d-none'); } if(value == 0){ $('.plan_price_div').removeClass('d-none'); if ($(".add_lable").find(".text-danger").length === 0) { $(".add_lable").append(`<span class="text-danger"> <sup>Paid</sup></span>`); } } if (!$('#trial').is(':checked')) { $('.plan_div').addClass('d-none'); $('#trial').removeAttr("required"); } } </script> <script> $('.input-primary').on('change', function() { var planId = $(this).data('id'); var isChecked = $(this).prop('checked'); $.ajax({ type: 'POST', url: '<?php echo e(route('update.plan.status')); ?>', data: { '_token': '<?php echo e(csrf_token()); ?>', 'plan_id': planId }, success: function(response) { console.log(response); if(response.status == 'error'){ toastrs('Error',response.message, 'error'); } else{ toastrs('Success',response.message ,'success') } }, error: function(error) { if (error.status === 404) { $(this).prop('checked', !isChecked); } } }); }); </script> <?php $__env->stopPush(); ?> <?php /**PATH /home/id/erp.dev-unit.com/resources/views/plans/plan_script.blade.php ENDPATH**/ ?>