

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

<div class="card">
    <div class="card-header" >
       <a style=" float: right;" href="<?php echo e(route('personaldetail.index')); ?>" class="btn btn-sm btn-primary">Back</a>
    </div>

    <div class="card-body">
        <div class="form-group">
             <table class="table table-bordered table-striped">
                <tbody>
                    <h4>Personal Detail</h4>
                      <tr>
                       <th>User ID</th>
                       <th> Photo </th>
                       <th> Video </th>
                       <th>Action</th>
                      </tr>
                      <tr>
                        <td><?php echo e($personal->unique_no); ?></td>
                        <td><img src="<?php echo e(asset('uploads/documents/'.$personal->live_photo)); ?>" width="80px;" height="80px;"></td>
                        <td>  
                            <?php if(!empty($personal->live_video)): ?>
                             <a href="<?php echo e(asset('uploads/'.$personal->live_video)); ?>"  target="_blank"><button type="button" class="btn btn-sm btn-info">View</button></a>
                            <?php endif; ?>
                       </td>
                       <td>
                              <button type="submit" class="btn btn-sm btn-flat  btn-success" > Verify</button><br><br>
                              <button href=""  class="btn  btn-sm btn-flat btn-danger" data-toggle='modal' data-target='#shortlist'>
                              Reject</button>
  
  
                            <!-----------------------------  Start ---------------------------->
                                <div class="modal fade" id="shortlist" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
                                  <div class="modal-dialog" role="document">
                                    <div class="modal-content">
                                       <div class="modal-header">
                                         <h5 class="modal-title" id="exampleModalLongTitle">Title</h5>
                                         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                           <span aria-hidden="true">&times;</span>
                                         </button>
                                       </div>
                                           <div class="modal-body"><!-- modal-body start-->
                                             <form method="POST" action="<?php echo e(route('RejectApplication',$personal->id )); ?>">
                                                   <?php echo csrf_field(); ?>
                                                   <h4>Reason</h4>
                                                   <textarea class="form-control" name="reject_reason"></textarea>   
                                                   
                                                  <div class="modal-footer">
                                                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                                                    <button type="submit" class="btn btn-primary">Save changes</button>
                                                  </div>
                                            </form>
                                           </div><!-- modal-body end-->
                                    </div>
                                  </div>
                                </div>
                          <!-----------------------------  End ---------------------------->



                      </td>
                      </tr>
                </tbody>
            </table>
            <br><br>
            
            
            <!------------------------------------------------------------>
            <table class="table table-bordered table-striped">
                <tbody>
                    <!--<h4>Personal Detail</h4>-->
                    <tr>
                        <th> First Name </th>
                        <th> Middle Name </th>
                        <th> Last Name </th>
                     </tr>
                     <tr>
                       <td> <?php echo e($personal->first_name); ?>  </td>
                       <td> <?php echo e($personal->middle_name); ?> </td>
                       <td> <?php echo e($personal->last_name); ?></td>
                    </tr>

                     <tr>
                        <th> Mobile No </th>
                        <th> Email</th>
                        <th> Gender </th>
                     </tr>
                    <tr>
                       <td>  <?php echo e($personal->mobile_no); ?> </td>
                       <td>  <?php echo e($personal->email); ?></td>
                       <td>  <?php echo e($personal->gender); ?></td>
                    </tr>
                    <tr>
                        <th> Date of birth </th>
                        <th> Retirement Date</th>
                        <th> Aadhaar No </th>
                     </tr>
                     <tr>
                       <td> <?php echo e($personal->date_of_birth); ?></td>
                       <td> <?php echo e($personal->retirement_date); ?></td>
                       <td> <?php echo e($personal->aadhaar_no); ?></td>
                    </tr>
                     <tr>
                        <th colspan="3"> Address </th>
                     </tr>
                     <tr>
                       <td colspan="3"> <?php echo e($personal->address); ?> </td>
                    </tr>
                </tbody>
            </table>
            <!------------------------------------------------------------>
              


        </div>
    </div>
</div>
 
                

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/kart/retirement.creatorkart.com/retirement/resources/views/persoanldetail/show.blade.php ENDPATH**/ ?>