@extends('layouts.app') @section('title', 'Customer deposits') @section('content')
{{ $accounts->total() }} deposit account(s). Money held is a liability until it is refunded.
| Customer | Balance | Deposited | Refunded | Movements | Last movement | |
|---|---|---|---|---|---|---|
| {{ $account->customer?->display_name ?: '—' }}
{{ $account->customer?->customer_number }} |
{{ money($account->balance) }} | {{ money($account->total_deposited) }} | {{ money($account->total_refunded) }} | {{ $account->transactions->count() }} | {{ $account->transactions->max('created_at')?->diffForHumans() ?: '—' }} | Open |