@extends('layouts.app') @section('title', 'Cash Book') @section('subtitle', 'Cash and bank receipts and payments') @section('content') Journals Ledgers
@foreach ($accounts as $account)
{{ $account->name }} {{ money($accountBalances[$account->code] ?? 0) }}
@endforeach

Movements

@forelse ($rows as $row) @empty @endforelse
Date Entry Account Description Receipt Payment Balance
Opening balance {{ money($opening) }}
{{ $row['line']->entry->date->format('j M Y') }} {{ $row['line']->entry->entry_number }} {{ $row['line']->account->name }}
{{ $row['line']->description ?? $row['line']->entry->description }}
{{ $row['line']->entry->journalLabel() }}@if ($row['line']->entry->reference) · {{ $row['line']->entry->reference }} @endif
{{ $row['receipt'] > 0 ? money($row['receipt']) : '—' }} {{ $row['payment'] > 0 ? money($row['payment']) : '—' }} {{ money($row['balance']) }}
Totals for period {{ money($receipts) }} {{ money($payments) }} {{ money($closing) }}
@endsection