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




    <div class="row">
        <div class="col-md-12">


            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption font-dark"><strong>Deposit Method</strong>
                    </div>
                    <div class="tools"> </div>
                </div>
                <div class="portlet-body">
                    <div class="row">
                        <div class="col-md-4 col-sm-12 text-center">

                                <div class="panel panel-info">
                                    <div class="panel-heading">
                                        <h3 style="font-size: 28px;"><b>
                                                <?php if($fund->payment_type == 1): ?>
                                                    Paypal
                                                <?php elseif($fund->payment_type == 2): ?>
                                                    Perfect Money
                                                <?php elseif($fund->payment_type == 3): ?>
                                                    BTC - ( BlockChain )
                                                <?php else: ?>
                                                    Credit Card
                                                <?php endif; ?>
                                            </b></h3>
                                    </div>
                                    <div style="font-size: 18px;padding: 18px;" class="panel-body text-center">
                                        <?php if($fund->payment_type == 1): ?>
                                            <?php  $img = $paypal->image  ?>
                                        <?php elseif($fund->payment_type == 2): ?>
                                            <?php  $img = $perfect->image  ?>
                                        <?php elseif($fund->payment_type == 3): ?>
                                            <?php  $img = $btc->image  ?>
                                        <?php else: ?>
                                            <?php  $img = $stripe->image  ?>
                                        <?php endif; ?>
                                        <img width="100%" class="image-responsive" src="<?php echo e(asset('images')); ?>/<?php echo e($img); ?>" alt="">
                                    </div>
                                    <div class="panel-footer">
                                        <a href="" class="btn btn-info btn-block btn-icon icon-left"><i
                                                    class="fa fa-arrow-left"></i> Back to Payment Method Page</a>
                                    </div>
                                </div>
                        </div>
                        <div class="col-md-8 col-sm-12">
                            <div class="panel panel-info panel-shadow" data-collapsed="0"><!-- to apply shadow add class "panel-shadow" -->

                                <!-- panel head -->
                                <div class="panel-heading">
                                    <div class="panel-title"><i class="fa fa-money"></i> <strong><?php echo e($page_title); ?></strong></div>
                                </div>
                                <!-- panel body -->
                                <div class="panel-body">
                                    <div class="text-center">
                                        <h3>Current Balance : <strong><?php echo e(Auth::guard('member')->user()->balance); ?> - <?php echo e($site_currency); ?></strong></h3>
                                    </div>
                                    <hr>
                                    <div class="row">
                                        <div class="form-group">
                                            <label style="margin-top: 5px;font-size: 14px;" class="col-sm-4 col-sm-offset-1 text-right control-label">Amount : </label>

                                            <div class="col-sm-4">
                                                <div class="input-group">
                                                    <input type="text" value="<?php echo e($fund->amount); ?>" readonly name="amount" id="amount" class="form-control" placeholder="Enter Deposit Amount" required>
                                                    <span class="input-group-addon red">&nbsp;<strong> <?php echo e($site_currency); ?> </strong></span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <br>
                                    <div class="row">
                                        <div class="form-group">
                                            <label style="margin-top: 5px;font-size: 14px;" class="col-sm-4 col-sm-offset-1 text-right control-label">After Deposit Balance  : </label>

                                            <div class="col-sm-4">
                                                <div class="input-group">
                                                    <input type="text" value="<?php echo e($fund->amount + Auth::guard('member')->user()->balance); ?>" readonly name="amount" id="amount" class="form-control" placeholder="Enter Deposit Amount" required>
                                                    <span class="input-group-addon red">&nbsp;<strong> <?php echo e($site_currency); ?> </strong></span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <hr>
                                    <?php if($fund->payment_type == 1): ?>
                                        <div class="row">
                                            <form action="https://secure.paypal.com/uk/cgi-bin/webscr" method="post" name="paypal" id="paypal">
                                                <input type="hidden" name="cmd" value="_xclick" />
                                                <input type="hidden" name="business" value="<?php echo e($paypal->val1); ?>" />
                                                <input type="hidden" name="cbt" value="<?php echo e($site_title); ?>" />
                                                <input type="hidden" name="currency_code" value="USD" />
                                                <input type="hidden" name="quantity" value="1" />
                                                <input type="hidden" name="item_name" value="Add Fund to <?php echo e($site_title); ?>" />

                                                <!-- Custom value you want to send and process back in the IPN -->
                                                <input type="hidden" name="custom" value="<?php echo e($fund->custom); ?>" />

                                                <input name="amount" type="hidden" value="<?php echo e($fund->amount); ?>">
                                                <input type="hidden" name="return" value="<?php echo e(route('deposit-fund')); ?>"/>
                                                <input type="hidden" name="cancel_return" value="<?php echo e(route('deposit-fund')); ?>" />
                                                <!-- Where to send the PayPal IPN to. -->
                                                <input type="hidden" name="notify_url" value="<?php echo e(route('paypal-ipn')); ?>" />

                                                <div class="form-group">
                                                    <div class="col-sm-6 col-sm-offset-3">
                                                        <button class="btn btn-danger btn-block btn-icon icon-left"><i
                                                                    class="fa fa-send"></i> Add Fund Now</button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    <?php elseif($fund->payment_type == 2): ?>
                                        <div class="row">
                                            <form action="https://perfectmoney.is/api/step1.asp" method="POST" id="myform">
                                                <input type="hidden" name="PAYEE_ACCOUNT" value="<?php echo e($perfect->val1); ?>">
                                                <input type="hidden" name="PAYEE_NAME" value="<?php echo e($site_title); ?>">
                                                <input type='hidden' name='PAYMENT_ID' value='<?php echo e($fund->custom); ?>'>
                                                <input type="hidden" name="PAYMENT_AMOUNT"  value="<?php echo e(round(($fund->amount),2)); ?>">
                                                <input type="hidden" name="PAYMENT_UNITS" value="USD">
                                                <input type="hidden" name="STATUS_URL" value="<?php echo e(route('perfect-ipn')); ?>">
                                                <input type="hidden" name="PAYMENT_URL" value="<?php echo e(route('deposit-fund')); ?>">
                                                <input type="hidden" name="PAYMENT_URL_METHOD" value="GET">
                                                <input type="hidden" name="NOPAYMENT_URL" value="<?php echo e(route('deposit-fund')); ?>">
                                                <input type="hidden" name="NOPAYMENT_URL_METHOD" value="GET">
                                                <input type="hidden" name="SUGGESTED_MEMO" value="<?php echo e($site_title); ?>">
                                                <input type="hidden" name="BAGGAGE_FIELDS" value="IDENT"><br>

                                                <div class="form-group">
                                                    <div class="col-sm-6 col-sm-offset-3">
                                                        <button class="btn btn-danger btn-block btn-icon icon-left"><i
                                                                    class="fa fa-send"></i>Add Fund Now</button>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    <?php elseif($fund->payment_type == 3): ?>

                                        <div class="row">
                                            <?php echo Form::open(['route'=>'btc-preview']); ?>

                                            <input type="hidden" name="amount" value="<?php echo e(round(($fund->amount),3)); ?>">
                                            <input type="hidden" name="fund_id" value="<?php echo e($fund->id); ?>">
                                            <input type="hidden" name="custom" value="<?php echo e($fund->custom); ?>">
                                            <div class="form-group">
                                                <div class="col-sm-6 col-sm-offset-3">
                                                    <button class="btn btn-danger btn-block btn-icon icon-left"><i
                                                                class="fa fa-send"></i>Add Fund Now</button>
                                                </div>
                                            </div>
                                            <?php echo e(Form::close()); ?>

                                        </div>
                                    <?php elseif($fund->payment_type == 4): ?>
                                        <div class="row">
                                            <?php echo Form::open(['route'=>'stripe-preview']); ?>

                                            <input type="hidden" name="amount" value="<?php echo e(round(($fund->amount),2)); ?>">
                                            <input type="hidden" name="fund_id" value="<?php echo e($fund->id); ?>">
                                            <input type="hidden" name="custom" value="<?php echo e($fund->custom); ?>">
                                            <div class="form-group">
                                                <div class="col-sm-6 col-sm-offset-3">
                                                    <button class="btn btn-danger btn-block btn-icon icon-left"><i
                                                                class="fa fa-send"></i>Add Fund Now</button>
                                                </div>
                                            </div>
                                            <?php echo e(Form::close()); ?>

                                        </div>
                                    <?php endif; ?>

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

        </div>
    </div><!-- ROW-->


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

<?php echo $__env->make('layouts.member', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>