@extends('layouts.app') @section('title', 'View Bill #' . $invoice->BillID) @push('styles') @endpush @section('content')
Billing Period: {{ $invoice->BillingPeriod }}
{{ $invoice->customer->CustomerName ?? 'N/A' }}
{{ $invoice->customer->Address1 ?? '' }}
{{ $invoice->customer->Address2 ?? '' }}
{{ $invoice->customer->City ?? '' }}, {{ $invoice->customer->PostalCode ?? '' }}
| # | Description | Units | Rate | Amount |
|---|---|---|---|---|
| {{ $index + 1 }} | {{ $line->ItemName }} | {{ number_format($line->Units, 2) }} | {{ number_format($line->UnitPrice, 2) }} | {{ number_format($line->LineAmount, 2) }} |
| Subtotal: | {{ number_format($calculatedSubtotal, 2) }} | |||
| Previous Balance: | {{ number_format($previousBalance, 2) }} | |||
| Total Due: | {{ number_format($totalDue, 2) }} | |||
| Date | Receipt # | Amount |
|---|---|---|
| {{ $payment->PaymentDate ? \Carbon\Carbon::parse($payment->PaymentDate)->format('M d, Y') : 'N/A' }} | {{ $payment->ReceiptNo ?? 'N/A' }} | KES {{ number_format($payment->TotalPayment, 2) }} |
| Total Paid: | KES {{ number_format($totalPaid, 2) }} | |
| Balance: | KES {{ number_format($balance, 2) }} @if($balance <= 0) Paid @elseif($totalPaid > 0) Partial @else Unpaid @endif | |
No payment history found for this bill.