<?php echo $__env->make('user/header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<div class="page-container">

    <!-- Content Wrapper START -->

    <div class="main-content">

        <div class="page-header">

            <h2 class="header-title">Whitelist Account</h2>

            <div class="header-sub-title">

                <nav class="breadcrumb breadcrumb-dash">

                    <a href="<?php echo e(url('/user/dashboard')); ?>" class="breadcrumb-item"><i class="anticon anticon-home m-r-5"></i>Home</a>                    

                    <span class="breadcrumb-item active">Whitelist Account</span>

                </nav>

            </div>

        </div>

        <div class="card">

            <div class="card-body">

                <?php if(session('success')): ?>

                <div class="alert alert-success mb-1 mt-1">

                    <?php echo e(session('success')); ?>


                </div>

                <?php endif; ?>

                <form action="<?php echo e(url('/user/add-bank-account')); ?>" method="POST" enctype="multipart/form-data">

                    <?php echo csrf_field(); ?>

                    <div class="form-row">

                        <div class="col-md-4 mb-3">

                            <label for="">Account Holder Name</label>

                            <input type="text" class="form-control is-valid1" id="benename" name="benename" placeholder="Account Holder Name" value="" >

                            <div class="invalid-feedback" style="display: block!important;">

                                <?php $__errorArgs = ['benename'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>

                                    <?php echo e($message); ?>


                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                            </div>

                        </div>

                        <div class="col-md-4 mb-3">

                            <label for="">Account Number</label>

                            <input type="text" class="form-control is-invalid1" id="beneaccount" name="beneaccount" placeholder="Account Number" >

                            <div class="invalid-feedback" style="display: block!important;">

                                <?php $__errorArgs = ['beneaccount'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>

                                    <?php echo e($message); ?>


                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                            </div>

                        </div>

                        <div class="col-md-4 mb-3">
                            <label for="">IFSC Code</label>
                            <input type="text" class="form-control is-invalid1" id="ifsccode" name="ifsccode" placeholder="IFSC Code" >
                            <div class="invalid-feedback" style="display: block!important;">
                                <?php $__errorArgs = ['ifsccode'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <?php echo e($message); ?>

                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>

                        <div class="col-md-4 mb-3">
                            <label for="">Pancard</label>
                            <input type="file" class="form-control is-invalid1" id="pancard" name="pancard" placeholder="pancard" >
                            <div class="invalid-feedback" style="display: block!important;">
                                <?php $__errorArgs = ['pancard'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <?php echo e($message); ?>

                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>

                        <div class="col-md-4 mb-3">
                            <label for="">Aadhaar Front</label>
                            <input type="file" class="form-control is-invalid1" id="aadhaarfront" name="aadhaarfront" placeholder="aadhaar front" >
                            <div class="invalid-feedback" style="display: block!important;">
                                <?php $__errorArgs = ['aadhaarfront'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <?php echo e($message); ?>

                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>

                        <div class="col-md-4 mb-3">
                            <label for="">Aadhaar Back</label>
                            <input type="file" class="form-control is-invalid1" id="aadhaarback" name="aadhaarback" placeholder="aadhaar back" >
                            <div class="invalid-feedback" style="display: block!important;">
                                <?php $__errorArgs = ['aadhaarback'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <?php echo e($message); ?>

                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>

                        <div class="col-md-4 mb-3">
                            <label for="">Cancel Cheque</label>
                            <input type="file" class="form-control is-invalid1" id="cancelcheque" name="cancelcheque" placeholder="Cancel Cheque" >
                            <div class="invalid-feedback" style="display: block!important;">
                                <?php $__errorArgs = ['cancelcheque'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <?php echo e($message); ?>

                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>
                        <br>
                        <div class="form-group text-center">

                            <button class="btn btn-primary">Submit</button>

                        </div>

                    </div>

                </form>

            </div>

        </div>

        <div class="row">

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

                            <div class="card">

                                <div class="card-body">

                                    <div class="d-flex justify-content-between align-items-center">

                                        <h5>Bank Account</h5>

                                        <div>

                                            

                                        </div>

                                    </div>

                                    <div class="m-t-30">

                                        <div class="table-responsive">

                                            <table class="table table-hover table-bordered">
                                                <thead>
                                                    <tr>
                                                        <th>Date</th>                                                        
                                                        <th>Name</th>
                                                        <th>Account Number</th>
                                                        <th>IFSC</th>
                                                        <th>Status</th>
                                                    </tr>
                                                </thead>

                                                <tbody>

                                                    <?php if(!empty($bankdata)): ?>

                                                        <?php $__currentLoopData = $bankdata; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                                        <tr>

                                                            <td><?php echo e($rows->created_at); ?></td>                                                                                                                                                                                
                                                            <td><?php echo e($rows->beneName); ?></td>
                                                            <td><?php echo e($rows->beneAccount); ?></td>     
                                                            <td><?php echo e($rows->beneIfsc); ?></td>                                                          
                                                            <td>
                                                                <?php if($rows->status == 1): ?>
                                                                    <button class="btn btn-sm btn-success">
                                                                        Approved
                                                                    </button>
                                                                <?php else: ?>
                                                                    <button class="btn btn-sm btn-danger">
                                                                    PENDING
                                                                    </button>
                                                                <?php endif; ?>

                                                            </td>                                           

                                                        </tr>

                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                                    <?php endif; ?>

                                                </tbody>

                                            </table>

                                        </div>

                                    </div>

                                </div>

                            </div>

                        </div>

                       

                    </div>

    </div>

</div>

<?php echo $__env->make('user/footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/resources/views/user/addbankaccount.blade.php ENDPATH**/ ?>