@extends('layouts.app') @section('title', 'Cash book') @section('content') @include('reports._range', ['export' => true])
@foreach ([ ['Opening balance', $opening, '', 'safe', ''], ['Money in', $totalIn, 'text-success', 'arrow-down-left-circle', 'chip-success'], ['Money out', $totalOut, 'text-danger', 'arrow-up-right-circle', 'chip-danger'], ['Closing balance', $closing, $closing < 0 ? 'text-danger' : '', 'wallet', 'chip-violet'], ] as [$label, $value, $class, $icon, $chip])
{{ $label }}
{{ money($value) }}
@endforeach
@if (count($chart['labels']) > 1)
Cash balanceEnd of day
@endif
@forelse ($entries as $e) @empty @endforelse
DateTypePartyDetailsMethodInOutBalance
Opening balance{{ money($opening) }}
{{ $e['date']->format('d M Y') }} {{ $e['type'] }} {{ $e['party'] }} {{ $e['detail'] ?: '—' }} {{ \App\Models\Payment::METHODS[$e['method']] ?? $e['method'] }} {{ $e['in'] ? money($e['in']) : '' }} {{ $e['out'] ? money($e['out']) : '' }} {{ money($e['balance']) }}
Totals · closing balance{{ money($totalIn) }}{{ money($totalOut) }}{{ money($closing) }}
@endsection