
<?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;">KYC Profile</h5>
            </div>

            <div class="card-body" style="padding-bottom: 50px;">
                <?php if(is_null($member_data->kyc)): ?>
                
                <?php if(!is_null($member_data->remark)): ?>
                <p style="color: red">Attention! <?php echo $member_data->remark; ?></p>
                <?php endif; ?>

                <form action="<?php echo e(url('kycsubmit')); ?>" method="post" enctype="multipart/form-data"><?php echo csrf_field(); ?>

                    <div class="row">
                        <div class="col-md-6">
                            <label>Your Name:</label>
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="text" name="name" value="<?php echo e($member_data->name); ?>" placeholder="Full Name" required>
                        </div>

                        <div class="col-md-6">
                            <label>Mobile Number:</label>
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="text" name="mobile" value="<?php echo e($member_data->mobile); ?>" placeholder="Mobile Number" required>
                        </div> 

                        <div class="col-md-6">
                            <label>Email:</label>
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="email" name="email" value="<?php echo e($member_data->email); ?>" placeholder="Email" required>
                        </div> 

                        <div class="col-md-6">
                            <label>NID Number:</label>
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="text" name="nid" value="<?php echo e($member_data->nid); ?>" placeholder="NID No" required>
                        </div>

                        <div class="col-md-6">
                            <label style="color: #fff;">Front Image:</label><br>
                            <input type="file" name="fimg" class="file" required>
                        </div>

                        <div class="col-md-6" style="margin-top: 12px;">
                            <label style="color: #fff;">Back Image:</label><br>
                            <input type="file" name="bimg" class="file" required>
                        </div>

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

                </form>
                <?php elseif($member_data->kyc == 0): ?>
                <p style="color:red">Attention! KYC Submitted Successfully. Please, Wait for Confirmation.</p>
                <p>
                    Name: <?php echo e($member_data->name); ?> <br>
                    NID No: <?php echo e($member_data->nid); ?> <br>
                </p>

                <?php $__currentLoopData = $imgs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $img): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <img style="width: 250px; height: auto; padding: 5px; border-radius: 15px; border: 1px solid gray;margin-bottom: 10px;" src="<?php echo e(URL::to($img->img)); ?>">
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                <?php elseif($member_data->kyc == 1): ?>
                <p style="color: #edff00">Congratulation! Your KYC Approved!</p>
                <p>
                    Name: <?php echo e($member_data->name); ?> <br>
                    NID No: <?php echo e($member_data->nid); ?> <br>
                </p>

                <?php $__currentLoopData = $imgs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $img): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <img style="width: 250px; height: auto; padding: 5px; border-radius: 15px; border: 1px solid gray;margin-bottom: 10px;" src="<?php echo e(URL::to($img->img)); ?>">
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
            </div>
        </div>
    </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/kyc.blade.php ENDPATH**/ ?>