<table class="table table-condensed bg-gray">
  <tr>
    <th><?php echo app('translator')->get('purchase.ref_no'); ?></th>
    <th><?php echo app('translator')->get('lang_v1.paid_on'); ?></th>
    <th><?php echo app('translator')->get('sale.amount'); ?></th>
    <th><?php echo app('translator')->get('contact.contact'); ?></th>
    <th><?php echo app('translator')->get('lang_v1.payment_method'); ?></th>
    <th><?php if($child_payments->first()->transaction->type == 'purchase'): ?> <?php echo app('translator')->get('purchase.ref_no'); ?> <?php else: ?>  <?php echo app('translator')->get('sale.invoice_no'); ?> <?php endif; ?></th>
    <th class="no-print"><?php echo app('translator')->get('messages.action'); ?></th>
  </tr>
  <?php $__empty_1 = true; $__currentLoopData = $child_payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
    <tr>
      <td><?php echo e($payment->payment_ref_no, false); ?></td>
      <td><?php echo e(\Carbon::createFromTimestamp(strtotime($payment->paid_on))->format(session('business.date_format') . ' ' . 'H:i'), false); ?></td>
      <td><span class="display_currency" data-currency_symbol="true"><?php echo e($payment->amount, false); ?></span></td>
      <td><?php echo e($payment->transaction->contact->name, false); ?></td>
      <td><?php echo e($payment_types[$payment->method] ?? '', false); ?></td>
      <td><?php if($payment->transaction->type != 'opening_balance'): ?> <a data-href="<?php if($payment->transaction->type == 'sell'): ?><?php echo e(action([\App\Http\Controllers\SellController::class, 'show'], [$payment->transaction_id]), false); ?><?php else: ?><?php echo e(action([\App\Http\Controllers\PurchaseController::class, 'show'], [$payment->transaction_id]), false); ?><?php endif; ?>" href="#" data-container=".view_modal" class="btn-modal"><?php if($payment->transaction->type == 'sell'): ?> <?php echo e($payment->transaction->invoice_no, false); ?> <?php else: ?> <?php echo e($payment->transaction->ref_no, false); ?> <?php endif; ?></a> <?php else: ?>
        <?php echo app('translator')->get('lang_v1.opening_balance_payments'); ?>
      <?php endif; ?></td>
      <td class="no-print">
        <button type="button" class="tw-dw-btn tw-dw-btn-xs tw-dw-btn-outline  tw-dw-btn-primary view_payment" data-href="<?php echo e(action([\App\Http\Controllers\TransactionPaymentController::class, 'viewPayment'], [$payment->id]), false); ?>" ><?php echo app('translator')->get("messages.view"); ?>
                    </button>
      </td>
    </tr>
  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    <tr class="text-center">
      <td colspan="6"><?php echo app('translator')->get('purchase.no_records_found'); ?></td>
    </tr>
  <?php endif; ?>
</table><?php /**PATH /home/loveandh/pos.justizpospro.co.ke/resources/views/transaction_payment/show_child_payments.blade.php ENDPATH**/ ?>