{{ session('CompanyName') ?? 'Property Management' }}

{{ session('CompanyAddress') ?? 'Company Address' }}

{{ session('CompanyPhone') ?? 'Phone: +254 XXX XXX XXX' }}

{{ session('CompanyEmail') ?? 'Email: info@company.com' }}

RENT SERVICE BILL

Bill ID: {{ $bill->BillID }}

Status: {{ $bill->BillStatus ?? 'OPEN' }}

Billing Date: {{ $bill->BillingDate ? \Carbon\Carbon::parse($bill->BillingDate)->format('M d, Y') : 'N/A' }}

@if($bill->DueDate)

Due Date: {{ \Carbon\Carbon::parse($bill->DueDate)->format('M d, Y') }}

@endif

Customer Information

Name: {{ $customer->CustomerName ?? 'N/A' }}

Account No: {{ $customer->AccountNo ?? 'N/A' }}

Phone: {{ $customer->TelNo ?? 'N/A' }}

Email: {{ $customer->Email ?? 'N/A' }}

Unit: {{ $bill->unit->UnitIdentity ?? 'N/A' }}

Property: {{ $bill->unit->property->PropName ?? 'N/A' }}

Billing Period: @if($bill->BillingPeriod) {{ \Carbon\Carbon::createFromFormat('Ym', $bill->BillingPeriod)->format('F Y') }} @else N/A @endif

@if($bill->lines && $bill->lines->count() > 0) @foreach($bill->lines as $line) @endforeach @else @endif
Description Quantity Unit Price Amount
{{ $line->ItemName }} {{ number_format($line->Units, 2) }} {{ number_format($line->UnitPrice, 2) }} {{ number_format($line->LineAmount, 2) }}
No line items found for this bill.
Previous Balance: {{ number_format($bill->PreviousBalance ?? 0, 2) }}
Current Charges: {{ number_format($bill->CurrentCharges ?? 0, 2) }}
Total Payable: {{ number_format($bill->TotalPayable ?? 0, 2) }}