
<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-lg-12" style="padding-left: 4px;padding-right: 4px;">
        <div class="card m-b-30" style="border-radius: 5px;">
            <div class="card-header">
                <h5 class="card-title" style="font-weight: bold; padding-top: 15px; font-size: 20px;">Withdraw Request</h5>
                <p style="padding-top:10px;padding-bottom: 0px; margin-bottom: 0px;color: #fff;">Available Balance: <?php if(is_null($member_data->balance)): ?> <a style="color:red">0</a> <?php else: ?> <a style="color:#7af6ff;"><?php echo e($member_data->balance); ?></a> <?php endif; ?></p>
            </div>

            <div class="card-body" style="padding-bottom: 50px;">
                <form action="<?php echo e(url('balpay')); ?>" method="post"><?php echo csrf_field(); ?>

                    <div class="row">

                        <div class="col-md-4">
                            <input style="margin-bottom: 10px;height: 38px;" type="number" class="form-control" id="amount" name="amount" min="200" placeholder="Amount (Min: 200)" required>
                        </div>

                        <div class="col-md-4">
                            <input style="margin-bottom: 10px;height: 38px;background: transparent;" type="number" class="form-control" id="vat" placeholder="Payout Charge 5%" readonly>
                        </div>

                        <div class="col-md-4">
                            <input style="margin-bottom: 10px;height: 38px;background: transparent;" type="number" class="form-control" id="net_amount" placeholder="Net Amount" readonly>
                        </div>

                        <div class="col-md-4">
                            <select style="width: 100%;margin-bottom: 10px;height: 38px;" name="gateway" class="form-control" required>
                                <option value="">Choose Method...</option>
                                <option value="BKash">bKash Personal</option>
                                <option value="Nagad">Nagad Personal</option>
                            </select>
                        </div>

                        <div class="col-md-4">
                            <input style="margin-bottom: 10px;height: 38px;background: transparent;color: #fff;" type="number" class="form-control" id="account" name="account" placeholder="Account Number" required>
                        </div>

                        <div class="col-md-4">
                            <input style="margin-bottom: 10px;height: 38px;" type="password" class="form-control" id="pin" name="pin" placeholder="Security PIN" required>
                        </div>

                        <div class="col-md-6">
                            <button style="height: 38px;background: #ec1666;color: #fff;" type="submit" class="btn">Confirm Now</button>
                        </div>
                    </div>

                </form>
            </div>

        </div>

        <?php if($pay_count > 0): ?>
        <div class="card m-b-30" style="border-radius: 5px;">
            <div class="card-body">
                <div class="table-responsive">
                    <table id="datatable" class="display table table-striped table-bordered" style="width: 100%;">
                        <thead style="background: #1f3740;">
                            <tr>
                                <th style="text-align: center; color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;">No.</th>
                                <th style="color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 150px;">Issue Date</th>
                                <th style="color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 110px;text-align: center;">Type</th>
                                <th style="color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center;">Method</th>
                                <th style="text-align: center; color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 90px;">Amount</th>
                                <th style="text-align: center; color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 110px;">Account Number</th>
                                <th style="text-align: center; color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 110px;">TrxID</th>
                                <th style="text-align: center; color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 90px;">Status</th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php $no=1; ?>
                            <?php $__currentLoopData = $payouts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $repo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center; color: #fff;"><?php echo e($no++); ?></td>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px; color: #fff;"><?php echo e($repo->created_at); ?></td>
                                
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;color: #fff;text-align: center;"><?php echo e($repo->type); ?></td>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;color: #fff;text-align: center;"><?php echo e($repo->payment_method); ?></td>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;color: #fff;text-align: center;"><?php echo e($repo->amount); ?></td>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center; color: #bdffba;"><?php echo e($repo->account); ?></td>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center; color: #fff;"><?php echo e($repo->trx_id); ?></td>
                                <?php if($repo->status == 0): ?>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center; color: red;">Pending</td>
                                <?php else: ?>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center; color: #00f8ff;">Paid</td>
                                <?php endif; ?>

                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>                      
                       
                    </table>
                </div>
            </div>
        </div>
        <?php endif; ?>
    </div> 
      
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('member.layout.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ebs/public_html/resources/views/member/payout.blade.php ENDPATH**/ ?>