OwlCyberSecurity - MANAGER
Edit File: 93ca8be046767a18fd16a16c7da64035b321322b.php
<?php $__env->startSection('title'); ?> Select Your Country <?php $__env->stopSection(); ?> <?php $__env->startSection('tag'); ?> <meta name="description" content=""> <?php $__env->stopSection(); ?> <?php $__env->startSection('levelCSS'); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('vi;'); ?> active <?php $__env->stopSection(); ?> <?php $__env->startSection('body'); ?> <?php echo $__env->make('partials.breadcrumb', ['title'=>'Select Your Country'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <section> <div class="container" style="background: #fff; padding: 40px 15px; margin-bottom: 20px; margin-top: 20px;"> <div class="row"> <div class="col-sm-4 col-sm-offset-4 text-justify section-head"> <div class="clear"></div> <p>Kindly select your country below to customize your payment options. (You will only do this once).</p> <hr> <form action="<?php echo e(route('/country')); ?>" id="countryForm" method="post"> <div class="form-group"> <select name="country" class="form-control crs-country" data-region-id="one" data-default-value="<?php echo e(currentUser()->country); ?>" required id=""></select> </div> <?php echo e(csrf_field()); ?> <div class="form-group"> <button class="btn btn-md btn-success btn-block" id="countryBtn">PROCEED <i class="fa fa-arrow-circle-o-right"></i></button> </div> </form> <br><br> </div> </div> </div> </section> <?php $__env->stopSection(); ?> <?php $__env->startSection('levelJS'); ?> <script> $(document).ready(function () { $('#countryForm').submit(function (e) { e.preventDefault(); $('#countryBtn').prop('disabled', true).html("SETTING COUNTRY <i class='fa fa-spinner fa-spin'></i>"); var url = $(this).attr('action'); var method = $(this).attr('method'); var formData = $(this).serialize(); $.ajax({ type: method, url: url, data: formData, dataType: "JSON", success: function (data) { if (data.status == 1) { $('#countryBtn').prop('disabled', false).html("PROCEED <i class='fa fa-arrow-circle-right'></i>"); swal(data.post, '', 'warning'); } else { window.location.href="<?php echo e($url); ?>"; } }, failure: function (e) { swal('OOPS! SOMETHING IS BROKEN', 'Reloading Page', 'danger'); location.reload(); } }) }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>