@extends('layouts.master') @section('content')
| Customer | Total Invoiced | Total Received | Outstanding | Last Transaction |
|---|---|---|---|---|
| {{ $customer->customer_name }} | {{ number_format((float) $customer->total_invoiced, 2) }} | {{ number_format((float) $customer->total_received, 2) }} |
@foreach(($customerBalances[$customer->id] ?? []) as $code => $amount)
{{ $code }} {{ number_format((float) $amount, 2) }}
@endforeach
|
{{ $customer->last_transaction_date }} |