@extends('layouts.app') @section('title', 'Edit Billing') @section('content')

Edit Billing {{ $billing->billing_number }}

Back to Billing
Adjust Charges and Due Date
Only the charges below and the due date can be changed. The meter readings, consumption, and water charges come from the approved reading and are not editable here.
@csrf @method('PUT')
₱
@error('penalties')
{{ $message }}
@enderror
₱
@error('other_charges')
{{ $message }}
@enderror
₱
@error('tax')
{{ $message }}
@enderror
@error('due_date')
{{ $message }}
@enderror
@error('remarks')
{{ $message }}
@enderror
Cancel
Current Billing
Client
{{ $billing->client?->name ?? '-' }}
Account No.
{{ $billing->client?->account_number ?? '-' }}
Billing Date
{{ $billing->billing_date?->format('M d, Y') ?? '-' }}
Consumption
{{ $billing->units_consumed ?? '-' }}
Water Charges
₱ {{ number_format((float) $billing->subtotal, 2) }}
Total Due
₱ {{ number_format((float) $billing->total_amount_due, 2) }}
Amount Paid
₱ {{ number_format((float) $billing->amount_paid, 2) }}
Balance
₱ {{ number_format((float) $billing->balance, 2) }}

Saving recalculates the total and balance from the water charges plus the values above, and records the change in the activity log.
@endsection