@extends('layouts.app') @section('title', $customer->name.' — Statement') @section('content')
{{ $customer->phone }} · Credit limit {{ number_format($customer->credit_limit, 2) }} · Available {{ number_format($customer->availableCredit(), 2) }}
Balance owed
{{ number_format($customer->balance, 2) }}
This link lets {{ $customer->name }} view this statement without logging in. It expires in 30 days.
| Date | Type | Reference | Amount |
|---|---|---|---|
| {{ \Carbon\Carbon::parse($entry['date'])->format('d M Y') }} | {{ $entry['ref'] }} | {{ $entry['direction'] === 'owe' ? '+' : '−' }}{{ number_format($entry['amount'], 2) }} | |
| No activity yet for this customer. | |||