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

{{ $customer->name }}

@csrf @method('POST')
@error('name') {{ $message }} @enderror
@error('location') {{ $message }} @enderror
@error('phone_number') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@error('building') {{ $message }} @enderror
@error('add_info') {{ $message }} @enderror
@error('status') {{ $message }} @enderror

Subscribed Services

Service Start Date End Date Status
Water Supply {{ $customer->converted_at }} - Active

My Meters

@foreach ($meters as $meter) @endforeach
Meter Installation Date Status
{{ $meter->meter_number }} {{ $meter->created_at }} {{ $meter->status }}

Customer Wise Rates

@php $customerWiseRate = $customer->customerWiseRate; @endphp @if (!empty($customerWiseRate) && count($customerWiseRate) > 0) @foreach ($customerWiseRate as $rate) @endforeach
ID Customer ID Agent ID Product ID User Type Sale Price Start Date End Date Status
{{ $rate->id }} {{ $rate->customer_id }} {{ $rate->agent_id }} {{ $rate->product_id }} {{ $rate->usertype }} {{ $rate->sale_price }} {{ $rate->startdate }} {{ $rate->enddate ?? '-' }} {{ $rate->status }}
@else

No customer-wise rates found.

@endif

Payment History

@foreach ($transactions as $value) @endforeach
{{ __('Date') }} {{ __('Transaction Type') }} {{ __('Amount') }}
{{ $value->created_at->format('d M, Y') }} @if ($value->transaction_type == 1) {{ __('Payment') }} @elseif($value->transaction_type == 2) {{ __('Receipt') }} @else {{ __('Charge') }} @endif {{ $value->amount }}

Water Consumption History

@foreach ($meterReading as $reading) @endforeach
Date Meter Number Reading Consumption
{{ $reading->created_at->format('M d, Y') }} {{ $reading->meter_number }} {{ $reading->new_reading }} {{ $reading->units }}

Invoices

@forelse($invoices as $invoice) {{-- --}} @empty @endforelse
Generation Date Invoice Number Amount Credit Notes Invoice Type Units Status Payment Date
{{ $invoice->created_at->format('M d, Y') }} {{ $invoice->invoiceNo }} {{ number_format($invoice->amount, 2) }} {{ number_format($invoice->total_credits, 2) }} {{ ucfirst($invoice->invoice_type) }} {{ $invoice->units }} {{ ucfirst($invoice->status) }}{{ $invoice->paid ? 'Yes' : 'No' }}{{ optional($invoice->paymentdate)->format('M d, Y') }}
No invoices found
@endsection