

<?php $__env->startSection('content'); ?>

<div class='container'>
    <div class='row d-flex my-5 justify-content-center'>
        <div class='col-md-7 order-info-box'>
            <div class='business-order-box'>
            <h2>Business Information</h2>      
            <ul class='business-info-list'>
            <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <li><strong>Name:</strong> <?php echo e($info->bname); ?></li>
            <li><strong>Email: </strong><?php echo e($info->bemail); ?></li>
            <li><strong>Business Phone: </strong><?php echo e($info->bphone); ?></li>
            <li><strong>Business Address: </strong><?php echo e($info->baddress); ?></li>
            <li><strong>Website Link: </strong><?php echo e($info->website_url); ?></li>
            <li><strong>Description</strong>
            <?php if($info->description != ''): ?>
                <?php echo e($info->description); ?>

            <?php else: ?>
                --
            <?php endif; ?>
            </li>
            <li><strong>Radius Address: </strong><?php echo e($info->radius_address); ?></li>      
            <li><strong>Radius: </strong><?php echo e($info->bradius); ?> miles</li>    
            <li><strong>Package: </strong><?php echo e($info->productname); ?></li>
            <li><strong>Price: </strong>$<?php echo e($info->price); ?></li>    
            <li><strong>Processed By: </strong><?php echo e($info->closer_name); ?></li>
            <li><strong>Services: </strong><?php echo e($info->services); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>    
            </ul>
            <div class="order-btns-div">
                <a class='btn btn-warning mx-2' href='<?php echo e(route("edit-business-details")); ?>'>Edit Information</a>
                <a class='btn btn-success' href='<?php echo e(route("checkout")); ?>'>Proceed to checkout</a>  
                </div>        
            </div>
        </div>
    </div>
</div>

<!-- <script type="text/javascript" src="https://js.stripe.com/v2/"></script>
    
<script type="text/javascript">
  
$(function() {
  
    /*------------------------------------------
    --------------------------------------------
    Stripe Payment Code
    --------------------------------------------
    --------------------------------------------*/
    
    var $form = $(".require-validation");
     
    $('form.require-validation').bind('submit', function(e) {
        var $form = $(".require-validation"),
        inputSelector = ['input[type=email]', 'input[type=password]',
                         'input[type=text]', 'input[type=file]',
                         'textarea'].join(', '),
        $inputs = $form.find('.required').find(inputSelector),
        $errorMessage = $form.find('div.error'),
        valid = true;
        $errorMessage.addClass('hide');
    
        $('.has-error').removeClass('has-error');
        $inputs.each(function(i, el) {
          var $input = $(el);
          if ($input.val() === '') {
            $input.parent().addClass('has-error');
            $errorMessage.removeClass('hide');
            e.preventDefault();
          }
        });
     
        if (!$form.data('cc-on-file')) {
          e.preventDefault();
          Stripe.setPublishableKey($form.data('stripe-publishable-key'));
          Stripe.createToken({
            number: $('.card-number').val(),
            cvc: $('.card-cvc').val(),
            exp_month: $('.card-expiry-month').val(),
            exp_year: $('.card-expiry-year').val()
          }, stripeResponseHandler);
        }
    
    });
      
    /*------------------------------------------
    --------------------------------------------
    Stripe Response Handler
    --------------------------------------------
    --------------------------------------------*/
    function stripeResponseHandler(status, response) {
        if (response.error) {
            $('.error')
                .removeClass('hide')
                .find('.alert')
                .text(response.error.message);
        } else {
            /* token contains id, last4, and card type */
            var token = response['id'];
                 
            $form.find('input[type=text]').empty();
            $form.append("<input type='hidden' name='stripeToken' value='" + token + "'/>");
            $form.get(0).submit();
        }
    }
     
});
</script> -->



<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/XAMPP/xamppfiles/htdocs/tprproject/get-myaio-app/resources/views/order.blade.php ENDPATH**/ ?>