<div class="modal" id="modal-invoice" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static">
   <div class="modal-dialog modal-lg">
      <div class="modal-content">
     
   <div class="modal-header bg-olive">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"> &times; </span> </button>
      <h4 class="modal-title">Pilih Invoice</h4>
   </div>
            
<div class="modal-body">
   <table class="table table-striped table-bordered table condensed tabel-invoice" id="tabel-invoice">
      <thead>
         <tr class="info">
			<th>NO.</th>
			<th>NO.INVOICE</th>
			<th>Tgl.Invoice</th>
			<th>TOTAL</th>
			<th>BAYAR</th>
			<th>SISA</th>
			<th>TYPE</th>
            <th>opsi</th>
         </tr>
      </thead>
      <tbody>
         <?php $__currentLoopData = $m_sale; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
         <tr>
			<td><?php echo e($no++); ?></td>
			<td><?php echo e($data->sale_no); ?></td>
			<td><?php echo e(tanggal_indonesia($data->sale_tgl, false)); ?></td>
			<td><?php echo e(format_uang($data->sale_netto)); ?></td>
			<td><?php echo e(format_uang($data->sale_bayar1 + $data->sale_bayar2 + $data->sale_bayar3 + $data->sale_bayar4 + $data->sale_bayar5 )); ?></td>
			<td><?php echo e(format_uang($data->sale_netto - $data->sale_bayar1 - $data->sale_bayar2 - $data->sale_bayar3 - $data->sale_bayar4 - $data->sale_bayar5 )); ?></td>
			<?php if( $data->status_retur==1): ?>
				<td>Invoice</td>
			<?php else: ?>
				<td>Retur/BS</td>
			<?php endif; ?>
            <td><a onclick="selectItem(<?php echo e($data->id_sale); ?>)" class="btn btn-primary btn-xs"><i class="fa fa-check-circle"></i> Pilih</a></td>
          </tr>
         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </tbody>
   </table>

</div>
      
         </div>
      </div>
   </div>
<?php /**PATH /home/myprojeq/public_html/wawan/resources/views/piutang/invoice.blade.php ENDPATH**/ ?>