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


<section class="section section-s bg-light-alt">
<?php if(Auth::user()->status == 0): ?>
<main class="nk-pages"><div class="section"><div class="container"><div class="nk-blocks d-flex justify-content-center"><div class="ath-container m-0"><div class="ath-body"><h5 class="ath-heading title">Account Blocked<small class="tc-default">Your account has been blocked for possible violation of terms</small></h5><div class="field-item"><div class="field-wrap"></div></div><button class="btn btn-primary btn-block btn-md">Contact Admin</button></div></div></div></div></div></main>

 <?php elseif(Auth::user()->bankyes == 0): ?>

<main class="nk-pages"><div class="section"><div class="container"><div class="nk-blocks d-flex justify-content-center"><div class="ath-container m-0"><div class="ath-body"><h5 class="ath-heading tistle">Bank Account Details<small class="tc-default">Please enter only correct account details as <?php echo e($basic->sitename); ?> will not be liable to any  loss arising form you providing wrong account details</small></h5>

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


<table class="table"><tbody>
<tr><td class="table-head">Bank Name</td><td class="table-des"><?php echo e(Auth::user()->bank); ?></td></tr>
<tr><td class="table-head">Account Name</td><td class="table-des"><?php echo e(Auth::user()->accountname); ?></td></tr>
<tr><td class="table-head">Account Number</td><td class="table-des"><?php echo e(Auth::user()->accountno); ?></td></tr> </tbody></table>

<a href="<?php echo e(route('bank.vvalidate',Auth::user()->accountno)); ?>">
<button  class="btn btn-outline btn-primary btn-block btn-sm">Save Bank</button></a>
<?php else: ?>
 <form action="<?php echo e(route('veri.bank')); ?>" method="post">
<?php echo e(csrf_field()); ?>

   <div class="field-item"><div class="field-wrap">
<select name="bank" required class="select" data-select2-theme="bordered" >
<option>Select Bank</option>
<? $accounts = DB::table('localbanks')->get(); ?>
<?php $__currentLoopData = $accounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $accounts): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($accounts->code); ?>"><?php echo e($accounts->bank); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div></div>

<div class="field-item"><div class="field-wrap">
<input type="text" name="accountno"  requlired  value="<?php echo e(old('accountname')); ?>" class="input-bordered" placeholder="Account Number"></div></div>
<button type="submit" class="btn btn-outline btn-primary btn-block btn-sm">Validate</button>


<?php endif; ?>


</div></div></div></div></div></div></main>
</form>
 <?php elseif(Auth::user()->email_verify == 0): ?>
<main class="nk-pages"><div class="section"><div class="container"><div class="nk-blocks d-flex justify-content-center"><div class="ath-container m-0"><div class="ath-body"><h5 class="ath-heading title">Email Verification<small class="tc-default">Please enter the code sent to <?php echo e(Auth::user()->email); ?></small></h5>
 <form  action="<?php echo e(route('user.email-verify')); ?>" method="post">
<?php echo csrf_field(); ?>
 <input type="hidden" name="id" value="<?php echo e(Auth::user()->id); ?>">
<div class="field-item"><div class="field-wrap">
<input type="text" class="input-bordered" name="email_code" placeholder="Enter Code"></div></div><button type="submit" class="btn btn-primary btn-block btn-md">Verify Email</button></form><div class="ath-note text-center"><a href=#">Didn't get any code? </a>

 <form  action="<?php echo e(route('user.send-emailVcode')); ?>" method="post">
   <?php echo csrf_field(); ?>
<input type="submit" class="btn btn-outline btn-primary btn-block btn-sm" value="Send Code">
</div></form></div></div></div></div></div></main>
<?php elseif(Auth::user()->phone_verify == 0): ?>
<main class="nk-pages"><div class="section"><div class="container"><div class="nk-blocks d-flex justify-content-center"><div class="ath-container m-0"><div class="ath-body"><h5 class="ath-heading title">Phone Verification<small class="tc-default">Please enter the code sent to <?php echo e(Auth::user()->phone); ?></small></h5>
 <form  action="<?php echo e(route('user.sms-verify')); ?>" method="post">
<?php echo csrf_field(); ?>
 <input type="hidden" name="id" value="<?php echo e(Auth::user()->id); ?>">
                                    <div class="field-item"><div class="field-wrap">
<input type="text" class="input-bordered" name="sms_code" placeholder="Enter Code"></div></div><button class="btn btn-primary btn-block btn-md">Verify Phone</button></form><div class="ath-note text-center"><a href=#">Didn't get any code? </a>
 <form  action="<?php echo e(route('user.send-vcode')); ?>" method="post">
   <?php echo csrf_field(); ?>

<input type="submit" class="btn btn-outline btn-primary btn-block btn-sm" value="Send Code">
</div></form></div></div></div></div></div></main>
<?php else: ?>
            <?php return redirect('user/home') ?>

        <?php endif; ?>
</section>

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

<?php echo $__env->make('include.front', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>