   <div class="table-responsive ">
    <table class="table table-sm table-hover table-outline table-vcenter text-nowrap card-table cls_datatable">
      <thead>
        <tr>

          <th>Sr #</th>
          <th><?php echo e(ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))); ?></th>
          <th>Payment Detail</th>
          <th>Description</th>
          <th>Amount</th>
          <th>Payment Type</th>
          <th>status</th> 
          <th>Date</th>   
         
          <th style="text-align: center;"><i class="dropdown-icon fa fa-cogs"></i></th>                          
        </tr>
      </thead>
      <tbody>
        <?php if(isset($payment_list)): ?>
        <?php $__currentLoopData = $payment_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

        <?php ($other_info = $rows->showGenericTypeDetail($rows)); ?>

                      
        
        <tr>
          <td><?php echo e($loop->iteration); ?></td>
          <td><?php echo e($rows->branch->name); ?></td>

          <td><?php echo e($other_info['description']); ?></td>

         <td><?php echo wordwrap($rows->description,50,'<br>'); ?> </td>

          <td><?php echo e(EF::numberFormat($rows->amount)); ?></td>
          <td><?php echo e($rows->payment_type); ?></td>
          <td>
             <?php if($rows->status == "Approve"): ?> 
                <span class="badge badge-success"><?php echo e(EF::getstatus($rows->status)); ?></span>
              <?php elseif($rows->status == "Unapprove"): ?> 
                <span class="badge badge-primary"><?php echo e(EF::getstatus($rows->status)); ?></span>
              <?php else: ?>
                <span class="badge badge-warning"> <?php echo e($rows->status); ?></span>
              <?php endif; ?>
          </td>
          
          <td><?php echo e(EF::dateFormat($rows->created_at)); ?></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 ($voucher_type = 'receipt'); ?>

             <?php if(Auth::user()->hasAnyPermission(['All','Create Voucher'])): ?> 
                   <?php if($rows->status == "Unapprove"): ?>
                      <a href="#" id="pay" class="dropdown-item" data-target="#md_add_voucher" data-toggle="modal" onclick="showpaymentvoucherModel(event,'<?php echo e(Crypt::encrypt($rows->id)); ?>','<?php echo e(Crypt::encrypt($voucher_type)); ?>')"><i class="dropdown-icon fa fa-edit"   ></i>Create Voucher  </a>
                      <?php endif; ?>
                      <?php endif; ?>
                    
                  <?php if(Auth::user()->hasAnyPermission(['All','Update Payment'])): ?> 
                  <?php if($rows->status == "Unapprove"): ?>
                   <a href="#" id="pay" class="dropdown-item" onclick="showUpdatePayPaymentModel(event,'<?php echo e(Crypt::encrypt($rows->id)); ?>');" ><i class="dropdown-icon fa fa-edit"   ></i>Update  </a>
                   <?php endif; ?>
                   <?php endif; ?>

                  <?php if(Auth::user()->hasAnyPermission(['All','Remove Payment'])): ?>  
                  <?php if($rows->status == "Unapprove"): ?> 
                   <a href="<?php echo e(route('payment.trash',['id' => Crypt::encrypt($rows->id)])); ?>" content ="remove payment" class="dropdown-item  cls_delete"><i class="dropdown-icon  fa fa-trash"></i> Remove </a>
                   <?php endif; ?>
                   <?php endif; ?>

                   <?php if(Auth::user()->hasAnyPermission(['All','View Booking Receipts']) && $rows->generic_type_id != EF::getGenericTableIndex()['Inventory Payable']): ?> 
                   <a target="_blank" href="<?php echo e(route('document.paymentreceipt',['id' => Crypt::encrypt($rows->id)])); ?>" content ="remove payment" class="dropdown-item "><i class="dropdown-icon  fa fa-print"></i> Receipt </a>
                   <?php endif; ?>
                </div>
            </div>
          </td>
       </tr>
      
       <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
       <?php endif; ?>
     </tbody>
   </table>
 </div>  <?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/payments/common_view.blade.php ENDPATH**/ ?>