@php($statement = $this->statementData) @php($transactions = $statement['transactions'])

{{ __('Account Statement') }}

{{ __('Print') }}
@error('account_id') {{ $message }} @enderror
@error('from_date') {{ $message }} @enderror
@error('to_date') {{ $message }} @enderror
{{ __('Opening Balance') }}
Rs. {{ number_format((float) $statement['opening_balance'], 2) }}
{{ __('Total Credit (In)') }}
Rs. {{ number_format((float) $statement['total_credit'], 2) }}
{{ __('Total Debit (Out)') }}
Rs. {{ number_format((float) $statement['total_debit'], 2) }}
{{ __('Closing Balance') }}
Rs. {{ number_format((float) $statement['closing_balance'], 2) }}
@forelse($transactions as $transaction) @empty @endforelse
{{ __('Date') }} {{ __('Account Details') }} {{ __('Description') }} {{ __('Debit') }} {{ __('Credit') }}
- {{ __('Opening Balance') }} {{ __('System Carry Forward') }} {{ $statement['opening_balance'] > 0 ? number_format((float) $statement['opening_balance'], 2) : '-' }} {{ $statement['opening_balance'] < 0 ? number_format(abs((float) $statement['opening_balance']), 2) : '-' }}
{{ date('d-M-Y', strtotime($transaction['date'])) }}
{{ $transaction['account_name'] }}
@if($transaction['account_type']) {{ $transaction['account_type'] }} @endif
{{ $transaction['description'] }} {{ $transaction['debit'] > 0 ? number_format((float) $transaction['debit'], 2) : '-' }} {{ $transaction['credit'] > 0 ? number_format((float) $transaction['credit'], 2) : '-' }}
{{ __('Selected filter ke mutabiq koi statement entry nahi mili.') }}
@if($transactions instanceof \Illuminate\Pagination\LengthAwarePaginator && $transactions->hasPages()) @endif