@extends('layouts.app') @section('title', 'Client Details') @section('content')
{{ $client->email ?? 'Not provided' }}
{{ $client->phone ?? 'Not provided' }}
{{ $client->full_address ?: 'Not provided' }}
{{ $client->barangay ?? 'Not provided' }}
{{ $client->city ?? 'Not provided' }}
{{ $client->province ?? 'Not provided' }}
{{ $client->zip_code ?? 'Not provided' }}
{{ $client->meter_number ?? 'Not provided' }}
| Billing Number | Date | Amount Due | Status | Action |
|---|---|---|---|---|
| {{ $billing->billing_number }} | {{ $billing->billing_date->format('M d, Y') }} | ₱{{ number_format($billing->total_amount_due, 2) }} | {{ ucfirst($billing->status) }} | View |
| No billings yet | ||||
| Billing # | Due Date | Days Overdue | Amount | Balance | Disconnection Status | Action |
|---|---|---|---|---|---|---|
| {{ $billing->billing_number }} | {{ $billing->due_date->format('M d, Y') }} | @php $daysOverdue = (int) abs($billing->due_date->diffInDays(now())); @endphp {{ $daysOverdue }} days | ₱{{ number_format($billing->total_amount_due, 2) }} | ₱{{ number_format($billing->balance, 2) }} | @php $discStatus = $billing->disconnection_status ?? 'none'; @endphp {{ ucfirst(str_replace('_', ' ', $discStatus)) }} | View |
| No overdue billings | ||||||
| Date | Billing # | Charge Type | Amount | Status | Notes |
|---|---|---|---|---|---|
| {{ $payment->created_at->format('M d, Y') }} | {{ $payment->billing?->billing_number ?? 'N/A' }} |
{{ ucfirst(str_replace('_', ' ', $payment->type)) }} | ₱{{ number_format($payment->amount, 2) }} | {{ ucfirst($payment->status) }} | {{ $payment->notes ?? '-' }} |
| No late fees or notices charged | |||||
| Reading Date | Value | Units Consumed | Status | Action |
|---|---|---|---|---|
| {{ $reading->reading_date->format('M d, Y') }} | {{ $reading->reading_value }} cu.m | {{ $reading->units_consumed ?? '—' }} cu.m | {{ ucfirst($reading->status) }} | View |
| No meter readings yet | ||||
| Reference | Date | Amount | Type | Method | Status |
|---|---|---|---|---|---|
| {{ $payment->reference_number ?? '—' }} | {{ $payment->payment_date->format('M d, Y') }} | ₱{{ number_format($payment->amount, 2) }} | @php $typeLabels = [ 'billing' => 'Billing', 'installation' => 'Installation', 'reconnection' => 'Reconnection', 'late_fee' => 'Late Fee', 'deposit' => 'Deposit', 'other' => 'Other' ]; $typeColors = [ 'billing' => 'primary', 'installation' => 'success', 'reconnection' => 'warning', 'late_fee' => 'danger', 'deposit' => 'info', 'other' => 'secondary' ]; $paymentType = $payment->payment_type ?? 'billing'; $label = $typeLabels[$paymentType] ?? ucfirst(str_replace('_', ' ', $paymentType)); $color = $typeColors[$paymentType] ?? 'secondary'; @endphp {{ $label }} | {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} | {{ ucfirst($payment->status) }} |
| No payments recorded yet | |||||