@extends('layouts.app') @section('title', $customer->name.' — Statement') @section('content')

{{ $customer->name }}

{{ $customer->phone }} · Credit limit {{ number_format($customer->credit_limit, 2) }} · Available {{ number_format($customer->availableCredit(), 2) }}

Balance owed

{{ number_format($customer->balance, 2) }}

@can('customers.payments') @endcan

This link lets {{ $customer->name }} view this statement without logging in. It expires in 30 days.

@forelse ($entries as $entry) @empty @endforelse
DateTypeReferenceAmount
{{ \Carbon\Carbon::parse($entry['date'])->format('d M Y') }} {{ $entry['type'] }} {{ $entry['ref'] }} {{ $entry['direction'] === 'owe' ? '+' : '−' }}{{ number_format($entry['amount'], 2) }}
No activity yet for this customer.
@csrf
@endsection