@php($cashbook = $this->cashbookData)
{{ __('Cash Flow View') }}

{{ __('CashBook') }}

{{--

Accounts ke received aur paid entries ko running balance ke sath dekhne ke liye simple cashbook.

--}}
{{ __('Print Report') }}
@error('from_date') {{ $message }} @enderror
@error('to_date') {{ $message }} @enderror
@error('account_id') {{ $message }} @enderror
{{ __('Opening Balance') }}
Rs. {{ number_format((float) $cashbook['opening_balance'], 2) }}
{{ __('Total Received') }}
Rs. {{ number_format((float) $cashbook['total_received'], 2) }}
{{ __('Total Paid') }}
Rs. {{ number_format((float) $cashbook['total_paid'], 2) }}
{{ __('Closing Balance') }}
Rs. {{ number_format((float) $cashbook['closing_balance'], 2) }}
{{--
CashBook Entries
@forelse($cashbook['transactions'] as $row) @empty @endforelse {{--
{{ __('Total Received') }} Rs. {{ number_format((float) $cashbook['total_received'], 2) }} - -
Processing Fee - Rs. {{ number_format((float) $cashbook['total_processing_fee'], 2) }} -
{{ __('Total Paid') }} - - Rs. {{ number_format((float) $cashbook['total_paid'], 2) }}
{{ __('Closing Balance') }} Rs. {{ number_format((float) $cashbook['closing_balance'], 2) }}
# {{ __('Date') }} {{ __('Description') }} {{ __('Account') }} {{ __('Received') }} Processing Fee {{ __('Paid') }} {{ __('Balance') }}
{{ $row['row_number'] }} {{ $row['date'] }} {{ $row['description'] }} {{ $row['account_name'] }} {{ $row['received'] > 0 ? 'Rs. ' . number_format((float) $row['received'], 2) : '-' }} {{ $row['processing_fee'] > 0 ? 'Rs. ' . number_format((float) $row['processing_fee'], 2) : '-' }} {{ $row['paid'] > 0 ? 'Rs. ' . number_format((float) $row['paid'], 2) : '-' }} Rs. {{ number_format((float) $row['balance'], 2) }}
Selected filters ke andar koi cashbook record nahi mila.
{{ __('Total Received') }} Rs. {{ number_format((float) $cashbook['total_received'], 2) }} - -
Processing Fee - Rs. {{ number_format((float) $cashbook['total_processing_fee'], 2) }} -
{{ __('Total Paid') }} - - Rs. {{ number_format((float) $cashbook['total_paid'], 2) }}
{{ __('Closing Balance') }} Rs. {{ number_format((float) $cashbook['closing_balance'], 2) }}
@if($cashbook['transactions']->hasPages())
{{ $cashbook['transactions']->links() }}
@endif
--}}
{{ __('CashBook Overview') }}
{{--
{{ __('Total Received') }}

Rs. {{ number_format((float) $cashbook['total_received'], 2) }}

Processing Fee

Rs. {{ number_format((float) $cashbook['total_processing_fee'], 2) }}

{{ __('Total Paid') }}

Rs. {{ number_format((float) $cashbook['total_paid'], 2) }}

{{ __('Closing Balance') }}

Rs. {{ number_format((float) $cashbook['closing_balance'], 2) }}

--}}
@forelse($cashbook['transactions'] as $row) @empty @endforelse
# {{ __('Date') }} {{ __('Description') }} {{ __('Charges') }} {{ __('Account') }} {{ __('Received') }} {{ __('Fee') }} {{ __('Paid') }} {{ __('Balance') }}
{{ $row['row_number'] }} {{ date('d-M-Y', strtotime($row['date'])) }}
{{ $row['description'] }}
@if((float) ($row['charges'] ?? 0) > 0) {{ __('Other Charges') }}: Rs. {{ number_format((float) $row['charges'], 2) }} @endif
{{ (float) ($row['charges'] ?? 0) > 0 ? 'Rs. ' . number_format((float) $row['charges'], 2) : '-' }} {{ $row['account_name'] }} {{ $row['received'] > 0 ? 'Rs. ' . number_format((float) $row['received'], 2) : '-' }} {{ $row['processing_fee'] > 0 ? 'Rs. ' . number_format((float) $row['processing_fee'], 2) : '-' }} {{ $row['paid'] > 0 ? 'Rs. ' . number_format((float) $row['paid'], 2) : '-' }} Rs. {{ number_format((float) $row['balance'], 2) }}
{{ __('No cashbook records found.') }}
@if($cashbook['transactions']->hasPages())
{{ $cashbook['transactions']->links() }}
@endif