Invoice Details
Ksh {{ number_format($companyCustomerInvoice->amount, 2) }}

T. Expected

Ksh {{ number_format($companyCustomerInvoice->companyCustomerInvoicePayments->sum('amount'), 2) }}

T. Paid

Ksh {{ number_format($companyCustomerInvoice->RemainingAmount, 2) }}

T. Balance

Transactions
    @if(count($companyCustomerInvoice->companyCustomerInvoicePayments) > 0)
    @foreach($companyCustomerInvoice->companyCustomerInvoicePayments as $companyCustomerInvoicePayment)
  • {{ $companyCustomerInvoicePayment->companyGroupedTransaction? $companyCustomerInvoicePayment->companyGroupedTransaction->transaction_code: '' }}
    {{ $companyCustomerInvoicePayment->companyGroupedTransaction? $companyCustomerInvoicePayment->companyGroupedTransaction->paymentMode? $companyCustomerInvoicePayment->companyGroupedTransaction->paymentMode->name: '': '' }} | {{ \Carbon\Carbon::parse($companyCustomerInvoicePayment->created_at)->format('d M Y') }}
    Ksh {{ number_format($companyCustomerInvoicePayment->amount) }}
  • @endforeach
    @else
    No transactions at the moment!
    @endif