@extends('layouts.master') @section('title', 'Cashbook Report') @section('styles') @endsection @section('content')
Back to Reports
Cashbook Report
@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if($reportData)
@csrf

{{ $reportData['company_name'] }}

Cashbook Report

Cashbook: {{ $reportData['cashbook']->name }} ({{ $reportData['cashbook']->account_number }})
Period: {{ $reportData['date_from'] }} - {{ $reportData['date_to'] }}
Generated: {{ $reportData['generated_at'] }}
Currency: {{ $reportData['currency']->currency_code ?? $reportData['cashbook']->currency ?? 'N/A' }}
Opening Balance
{{ number_format($reportData['opening_balance'], 2) }}
Total Receipts
{{ number_format($reportData['total_receipts'], 2) }}
Total Payments/Transfers
{{ number_format($reportData['total_payments'], 2) }}
Closing Balance
{{ number_format($reportData['closing_balance'], 2) }}
Transactions
@forelse($reportData['transactions'] as $txn) @empty @endforelse
Date Description Ref In Out Balance
{{ $txn['date'] }}
{{ $txn['description'] }}
Type: {{ ucfirst($txn['transaction_type']) }} | Client: {{ $txn['client'] }} | Matter: {{ $txn['matter'] }}
{{ $txn['reference'] }} {{ $txn['in'] > 0 ? number_format($txn['in'], 2) : '' }} {{ $txn['out'] > 0 ? number_format($txn['out'], 2) : '' }} {{ number_format($txn['balance'], 2) }}
No cashbook transactions found for the selected period.
Period Totals {{ number_format($reportData['period_totals']['in'], 2) }} {{ number_format($reportData['period_totals']['out'], 2) }}
@endif
@endsection