@extends('layouts.admin') @section('title', 'Product | Mintavia Admin') @section('content')
@if (isset($message) && $message) @endif

Bank Reconciliation statement

@csrf
{{-- From and To Date --}}
{{-- 👈 Add this --}} @php $totalDeposit = 0; $totalWithdrawal = 0; $paymentModes = [ 'cheque_issued' => 'Cheque Issued', 'draft_issued' => 'Draft Issued', 'withdraw_cash_from_bank' => 'Withdraw Cash From Bank', 'bank_expense' => 'Bank Expense', 'online_transfer' => 'Online Transfer', '1' => 'Cheque Received', '2' => 'Draft Received', '3' => 'Received Cash into Bank', '4' => 'Bank Transfer from Another Account', '5' => 'Credit Card Payment Received', '6' => 'Online Transfer', ]; @endphp @foreach ($vouchers as $voucher) @php $deposit = $voucher->transaction_type === 'Quick Receipt' ? $voucher->net_amount : 0; $withdrawal = $voucher->transaction_type === 'Quick Payment' ? $voucher->net_amount : 0; $totalDeposit += $deposit; $totalWithdrawal += $withdrawal; @endphp @endforeach
Date Receipt No. Payment Mode Bank Entry Party Name Cheque No Cheque Date Narration Deposit Withdrawal CLEAR DATE
{{ $voucher->date }} {{ $voucher->voucher_no }} {{ $paymentModes[$voucher->payment_mode_bank] ?? 'N/A' }} {{ $voucher->bankStatement->account->name ?? 'N/A' }} {{ $voucher->account->name ?? 'N/A' }} {{ $voucher->cheque_number }} {{ $voucher->cheque_date }} {{ $voucher->narration }} {{ $deposit > 0 ? number_format($deposit, 2) : '' }} {{ $withdrawal > 0 ? number_format($withdrawal, 2) : '' }}
Total Deposit

₹{{ number_format($totalDeposit, 2) }}
Total Withdrawal

₹{{ number_format($totalWithdrawal, 2) }}
@endsection @section('js') @endsection