@extends('layouts.app') @section('content')

รายละเอียดใบแจ้งค่าน้ำ

เลขที่บิล {{$bill->bill_no}} | บ้าน {{$bill->house->house_no}} {{$bill->house->owner_name}}

@foreach($bill->items as $item) @endforeach
มิเตอร์ เลขก่อน เลขหลัง หน่วยใช้ อัตรา/หน่วย ค่าน้ำ
{{$item->installation->meter->meter_no}} {{$item->previous_reading}} {{$item->current_reading}} {{$item->units_used}} {{number_format($item->rate_per_unit, 2)}} {{number_format($item->amount, 2)}} บาท
รวม {{$bill->total_units}} {{number_format($bill->total_amount, 2)}} บาท

การชำระเงิน

ชำระแล้ว {{number_format($bill->paid_amount, 2)}} บาท | คงค้าง {{number_format($bill->balance, 2)}} บาท

@endsection