   <?php if(Auth::user()->hasAnyPermission(['All','View Nominee'])): ?>
 <div class = "col-md-12 col-sm-12">
  <div class= "card card-collapsed">
    <div class="card-status bg-purple">
    </div>
    <div class="card-header">             

      
      <?php if(Auth::user()->hasAnyPermission(['All','Add Nominee'])): ?>
      <button  class="float-right btn btn-sm btn-outline-primary" data-toggle="modal" data-target="#md_add_nominee"><i class="fa fa-plus"></i></button> &nbsp;&nbsp;
      <?php endif; ?>

      <h3 class="card-title"> Manage Co-Owners/Nominee</h3>

      <div class="card-options">
       <a onclick="cardCollapseOnce(event,this);" href="#" class="card-options-collapse btn btn-sm btn-outline-primary" >View <i class="fe fe-chevron-up"></i></a>
       
     </div>

   </div>
   <div class="alert alert-primary card-alert mb-0">
    Co-Owners/Nominee
  </div>

  <div class="table-responsive booking-table-height">
    <table class="table table-hover table-outline table-vcenter text-nowrap card-table">
      <thead>
        <tr>
          
          <th>#</th>
          <th>Name</th>
          <th>Father Name</th>
          <th>Cnic #</th>
          <th>Type</th>
          <th>Relation</th>
          <th style="text-align: center;"><i class="dropdown-icon fa fa-cogs"></i></th>
          
        </tr>
      </thead>
      <tbody>
       <?php if(isset($nominee_list)): ?>
       
       <?php $__currentLoopData = $nominee_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
       <?php ($pass_data = []); ?>
       <?php ($nok_user = $rows->user); ?>
       

         <?php (
         $pass_data = array(
         'nok'                  => Crypt::encrypt($rows->id),
         'user'                 => Crypt::encrypt($nok_user->id),
         'full_name'            => $nok_user->name,
         'father_name'          => $nok_user->fname,
         'dob'                  => str_replace('1970-01-01','',date('Y-m-d',strtotime($rows->dob))),
         'cnic'                 => $nok_user->cnic,
         'email'                => EF::filteremail($nok_user->email),
         'contact'              => $nok_user->contact,
         'relation'             => $nok_user->relation,
         'gender'               => $nok_user->gender,
         'nationality'          => $nok_user->nationality,
         'occupation'           => $nok_user->occupation,
         'temporary_address'    => $nok_user->temp_address,
         'permanent_address'    => $nok_user->per_address,
         'relation_ship'        => $rows->relation_ship,
         'passport'             => $nok_user->passport,
         'other_contact'              => $nok_user->other_contact,

         'nok_type'             => $rows->nok_type,
           $branch_labels['module']       => Crypt::encrypt($nok_user->branch_id),
         )
       ); ?>
       
       <tr>
        <td><?php echo e($loop->iteration); ?></td>
        <td style="text-align: left;"> <span class="avatar" style="background-image: url(<?php echo e(EF::getFile($nok_user->dp)); ?>);"></span>&nbsp;&nbsp;&nbsp;<?php echo e($nok_user->name); ?></td>
    
        <td><?php echo e($nok_user->fname); ?></td>
        <td><?php echo e($nok_user->cnic); ?></td>
        
        <td><?php echo e($rows->nok_type); ?></td>
        <td><?php echo e($rows->relation_ship); ?></td>
        <td class="text-center"> 
         <div class="item-action dropdown">
          <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fa fa-list-ul"></i></a>
          <div class="dropdown-menu dropdown-menu-right">

  
           <?php if(Auth::user()->hasAnyPermission(['All','Update Nominee'])): ?>
           <a onclick="update(event,'<?php echo e(json_encode($pass_data)); ?>','form_update_nominee','md_update_nominee')" href="#" class="dropdown-item"><i class="dropdown-icon fa fa-edit"></i> Update Nok </a>
           <?php endif; ?>
         </div>
       </div>
       
     </td>

     <tr>
      
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      <?php endif; ?>
      
    </tbody>
  </table>
</div>                               

</div>
</div>
<?php endif; ?><?php /**PATH /var/www/skylite/resources/views/user/manage_nominee.blade.php ENDPATH**/ ?>