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

Customer Statement

@if($warning)
{{ $warning }}
@endif
{{ $customer->name ?? $customer->customer_name ?? $customer->description ?? $customer->code ?? 'Customer' }}
@if($from)
Balance brought forward: {{ number_format($opening, 2) }}
@endif @foreach($transactions as $tx) due_date) && $tx->due_date < now()->toDateString() && $tx->balance > 0) class="table-warning" @endif> @endforeach
DateReferenceDescriptionDebitCreditBalance
{{ $tx->tx_date }} {{ $tx->reference }} {{ $tx->source }} - {{ $tx->description }} {{ number_format((float) $tx->debit_amount, 2) }} {{ number_format((float) $tx->credit_amount, 2) }} {{ number_format((float) $tx->balance, 2) }}
Total Invoiced: {{ number_format((float) $summary['invoiced'], 2) }}
Total Receipts: {{ number_format((float) $summary['receipts'], 2) }}
Credit Notes: {{ number_format((float) $summary['credit_notes'], 2) }}
Outstanding: {{ number_format((float) $summary['outstanding'], 2) }}
@endsection