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

    <div class="account choose_payment_method">
            <div class="choose-payment-method-wrapper">
                <h4 style="text-align:center;margin-bottom:30px;">Payment method</h4>

                <a href="<?php echo e(route('pay.card_payment')); ?>" class="choise-button ">Pay by card <?php if(!session('fixed_summ')) { ?> (2%) <?php } ?></a>

                <a href="#" class="choise-button paypal-button">Pay by Paypal <?php if(!session('fixed_summ')) { ?> (4%) <?php } ?>  </a>

                <form id="pay_paypal" method="post" action="<?php echo $payNowButtonUrl; ?>">



                    <input type="hidden" name="business" value="<?php echo $paypalemail ?>">

                    <input type="hidden" name="cmd" value="_xclick">

                    <input type="hidden" name="notify_url" value="<?php echo e(route('pay.paypal')); ?>">

                    <input type="hidden" name="item_name" value="Pay invoice">

                    <input type="hidden" name="amount" value="<?php if(!session('fixed_summ')) { echo session('total_amount') + session('total_amount')*0.04; } else {  echo session('total_amount'); } ?>">

                    <input type="hidden" name="no_shipping" value="0">

                    <?php if(request()->get('pay_amount')): ?>

                    <input type="hidden" name="custom" value='<?php echo e(serialize(session('invoices_to_form'))); ?>'>

                    <?php else: ?>

                    <input type="hidden" name="custom" value='pre_payment'>

                    <?php endif; ?>

                    <input type="hidden" name="return" value="https://www.thinking.fish/pay/page_send_mail">

                    <input type="hidden" name="cancel_return" value="https://www.thinking.fish/pay/choose_pay">

                    <input type="hidden" name="currency_code" value="<?php echo $currency ?>">

                </form>
            </div>
    </div>

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

<?php echo $__env->make('layouts.pay_app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/joraleqyan/PhpstormProjects/xero/resources/views/pay/choose_pay.blade.php ENDPATH**/ ?>