<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" id="Paymentmadehistory">
  <div class="modal-dialog modal-lg">
      <div class="modal-content">

<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal">&times;</button>
	<h4 class="modal-title">Payment Made History</h4>
</div>
    <div class="modal-body">
        <div class="row">
		<div class="col-md-12">
			<table class="table">
    <thead>
      <tr>
        <th>Invoice No</th>
        <th>Amount</th>
        <th>Receiving Date</th>
        <th>Payment Method</th>
        <th>Reference Number</th>
        <th>Note</th>
      </tr>
    </thead>
    <tbody>
	<?php $__empty_1 = true; $__currentLoopData = $getPaymentHistory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $history): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
      <tr>
        <td><?php echo e($history->invoice_no); ?></td>
        <td><i class="fa fa-inr"></i>&nbsp;<?php echo App\Helpers\LogActivity::moneyFormatIndia(round($history->amount)); ?></td>
        <td><?php echo e(date(LogActivity::commonDateFromatType(),strtotime($history->receiving_date))); ?></td>
        <td><?php echo e($history->payment_type); ?> <?php if($history->payment_type=='Cheque'): ?> (<?php echo e(date(LogActivity::commonDateFromatType(),strtotime($history->cheque_date))); ?>) <?php endif; ?></td>
        <td><?php echo e($history->reference_number ?? 'N/A'); ?></td>
        <td><a href="javascript:void(0);" tabindex="0" class="text-right" data-placement="bottom" data-toggle="popover" data-trigger="focus" title="Remarks" data-content="<?php echo e($history->note ?? 'N/A'); ?>"><i class="fa fa-eye"</a></td>
      </tr>
	<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
		  <tr>
			<td colspan="6" class="text-center">No record found.</td>
		</tr>
	<?php endif; ?>
    </tbody>
  </table>
	</div>
	</div>
	</div> 

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

	<script>


	$(document).ready(function() {
        "use strict";
        $('[data-toggle="tooltip"]').tooltip();
		$('[data-toggle="popover"]').popover();
	});
	</script>