<?php $__env->startSection('body'); ?>
  <div class="page-content"><div class="container"><div class="content-area card"><div class="card-innr"><div class="card-head"><h4 class="card-title">KYC List</h4></div><table class="data-table dt-init kyc-list"><thead><tr class="data-item data-head"><th class="data-col dt-user">User</th><th class="data-col dt-user">Doc Type</th><th class="data-col dt-doc-front">Documents</th><th class="data-col dt-doc-back">&nbsp;</th><th class="data-col dt-status">Status</th><th class="data-col"></th></tr></thead><tbody>

<?php $__currentLoopData = $kyc; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  <tr class="data-item"><td class="data-col dt-user"><span class="lead user-name"><?php echo e($data->user->username); ?></span><span class="sub user-id"><?php echo e($data->user->email); ?></span></td><td class="data-col dt-user"><span class="sub sub-s2 sub-dtype"><?php echo e($data->type); ?></span></td>

<td class="data-col dt-doc-front"><a href="<?php echo e(url('kyc')); ?>/<?php echo e($data->image1); ?>" class="image-popup">Front Part</a> &nbsp; &nbsp; <a href="<?php echo e(url('kyc')); ?>/<?php echo e($data->image1); ?>" download><em class="fas fa-download"></em></a></td>

<td class="data-col dt-doc-back"><a href="<?php echo e(url('kyc')); ?>/<?php echo e($data->image1); ?>" class="image-popup">Back Part</a> &nbsp; &nbsp; <a href="<?php echo e(url('kyc')); ?>/<?php echo e($data->image2); ?>" download><em class="fas fa-download"></em></a></td>

<td class="data-col dt-status">

<?php if($data->status == 1): ?>
<span class="dt-status-md badge badge-outline badge-success badge-md">Approved</span><span class="dt-status-sm badge badge-sq badge-outline badge-success badge-md">A</span>

<?php elseif($data->status == 2): ?>
<span class="dt-status-md badge badge-outline badge-danger badge-md">Rejected</span><span class="dt-status-sm badge badge-sq badge-outline badge-danger badge-md">R</span>
<?php else: ?>
<span class="dt-status-md badge badge-outline badge-warning badge-md">Pending</span><span class="dt-status-sm badge badge-sq badge-outline badge-warning badge-md">P</span>
<?php endif; ?>

</td><td class="data-col text-right"><div class="relative d-inline-block"><a href="<?php echo e(route('kycview',$data->id)); ?>" class="btn btn-light-alt btn-xs btn-icon"><em class="ti ti-more-alt"></em></a> </div></td></tr><!-- .data-item -->
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<!-- .data-item --></tbody></table></div><!-- .card-innr --></div><!-- .card --></div><!-- .container --></div><!-- .page-content -->

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

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