Plan Details
Invoices
{{ $companyCustomerServicePlan->companyCustomer->names?? '' }} {{ $companyCustomerServicePlan->companyCustomer->phone?? '' }} {{ $companyCustomerServicePlan->companyRouter->name?? '' }}
Created on: {{ $companyCustomerServicePlan->created_at->format('l, jS F, Y \a\t h:i:s A') }}
@if($companyCustomerServicePlan->Summary['totalBalance'] < 0) The account has an overpayment of Ksh {{ number_format(abs($companyCustomerServicePlan->Summary['totalBalance']), 2) }} @endif @if($companyCustomerServicePlan->previous_debt > 0) The account has/had a previous debt of Ksh {{ number_format(abs($companyCustomerServicePlan->previous_debt), 2) }} @endif @if($companyCustomerServicePlan->previous_overpayment > 0) The account has/had a previous overpayment of Ksh {{ number_format(abs($companyCustomerServicePlan->previous_overpayment), 2) }} @endif
Ksh {{ number_format($companyCustomerServicePlan->Summary['totalExpected'], 2) }}

T. Expected

Ksh {{ number_format($companyCustomerServicePlan->Summary['totalPaid'], 2) }}

T. Paid

Ksh {{ number_format($companyCustomerServicePlan->Summary['totalBalance'], 2) }}

T. Balance

Latest Transactions
    @if($companyCustomerServicePlan->companyServicePlan->service_plan_id == 1)
  • {{ $companyCustomerServicePlan->companyGroupedTransaction? $companyCustomerServicePlan->companyGroupedTransaction->paymentMode? $companyCustomerServicePlan->companyGroupedTransaction->paymentMode->name: '': '' }} @if($companyCustomerServicePlan->companyGroupedTransaction && $companyCustomerServicePlan->companyGroupedTransaction->transaction_code != "") - {{ $companyCustomerServicePlan->companyGroupedTransaction? $companyCustomerServicePlan->companyGroupedTransaction->transaction_code: '' }} @endif
    Ksh {{ $companyCustomerServicePlan->companyGroupedTransaction? number_format($companyCustomerServicePlan->companyGroupedTransaction->amount, 2): '' }} {{ \Carbon\Carbon::parse($companyCustomerServicePlan->created_at)->format('d M Y') }} at {{ \Carbon\Carbon::parse($companyCustomerServicePlan->created_at)->format('h:i A') }}
  • @else @if(count($companyCustomerServicePlan->CompanyCustomerInvoicePayments) > 0)
    @foreach($companyCustomerServicePlan->CompanyCustomerInvoicePayments as $companyCustomerInvoicePayment)
  • {{ $companyCustomerInvoicePayment->companyGroupedTransaction? $companyCustomerInvoicePayment->companyGroupedTransaction->paymentMode? $companyCustomerInvoicePayment->companyGroupedTransaction->paymentMode->name: '': '' }} @if($companyCustomerInvoicePayment->companyGroupedTransaction && $companyCustomerInvoicePayment->companyGroupedTransaction->transaction_code != "") - {{ $companyCustomerInvoicePayment->companyGroupedTransaction? $companyCustomerInvoicePayment->companyGroupedTransaction->transaction_code: '' }} @endif
    Ksh {{ number_format($companyCustomerInvoicePayment->amount, 2) }} {{ \Carbon\Carbon::parse($companyCustomerInvoicePayment->created_at)->format('d M Y') }} at {{ \Carbon\Carbon::parse($companyCustomerInvoicePayment->created_at)->format('h:i A') }}
  • @endforeach
    @else
    No transactions the moment!
    @endif @endif