@php $i=1;@endphp @if(count($data)>0) @foreach($data as $key=> $list) @if($list->transaction_type=='DEBIT') @else @endif {{-- @foreach($list->DebitTransaction as $credit_key => $debit_value) @if($credit_key != 0) @endif @if($credit_key == 0) @endif @endforeach @foreach($list->CreditTransaction as $credit_key => $credit_value) @endforeach--}} @php $i++; @endphp @endforeach @else @endif
Sl No Transactions No. Transactions Date Voucher No Voucher Type Receipt No Account Name Debit Amount Credit Amount
{!! $data->firstItem() + $key !!} {!! $list->transactions_no ?? '' !!} {!! formatedDate($list->transaction_date) !!}, {!! formatedTime($list->created_at) !!} @if($list->module_code === 'CONTRA') {!! $list->contraVoucher->voucher_no ?? '' !!} @elseif($list->module_code === 'PAYMENT_VOUCHER') {!! $list->paymentVoucher->receipt_no ?? '' !!} @elseif($list->module_code === 'JOURNAL_VOUCHER') {!! $list->journalVoucher->voucher_no ?? '' !!} @elseif($list->module_code === 'Receipt_VOUCHER') {!! $list->receiptVoucher->receipt_no ?? '' !!} @elseif($list->module_code === 'PATHOLOGY_LAB_BILLING' || $list->module_code === 'Pathology' || $list->module_code === 'PATHOLOGY') @if($list->voucher_type=='RECEIPT') {!! $list->receiptVoucher->salesVoucher->voucher_type_invoice_no ?? '' !!} @else {!! $list->pathologyVoucher->voucher_type_invoice_no ?? '' !!} @endif @elseif($list->module_code === 'OPD_BOOKING') @if($list->voucher_type=='RECEIPT') {!! $list->receiptVoucher->opdBooking->booking_no ?? '' !!} @else {!! $list->OpdVoucher->booking_no ?? '' !!} @endif @elseif($list->module_code === 'IPD_ADMISSION' || $list->module_code === 'IPD_INVOICE') @if($list->voucher_type=='RECEIPT') {!! $list->receiptVoucher->salesVoucher->voucher_type_invoice_no ?? '' !!} @else {!! $list->IPDAdmissionVoucher->voucher_type_invoice_no ?? '' !!} @endif @elseif($list->module_code === 'SALES') @if($list->voucher_type=='RECEIPT') {!! $list->receiptVoucher->salesVoucher->voucher_type_invoice_no ?? '' !!} @else {!! $list->SalesVoucher->voucher_type_invoice_no ?? '' !!} @endif @elseif($list->module_code === 'PURCHASE') @if($list->voucher_type=='PAYMENT') {!! $list->paymentVoucher->PurchaseVoucher->voucher_type_invoice_no ?? '' !!} @else {!! $list->PurchaseVoucher->voucher_type_invoice_no ?? '' !!} @endif @endif {!! $list->VoucherType->name ?? '' !!}
@if($list->voucher_type=='RECEIPT' && $list->voucher_id!='' && isset($list->receiptVoucher->id)) {!! $list->receiptVoucher->receipt_no??'' !!} @endif {!! $list->Account->name ?? '' !!} A/C {!! $list->transaction_type !!}To {!! $list->Account->name ?? '' !!} A/C {!! $list->transaction_type !!} @if($list->transaction_type=='DEBIT') {!! isset($list->amount) && abs($list->amount) > 0 ? convertDecimelPoint(abs($list->amount)) : 0 !!}
@endif
@if($list->transaction_type=='CREDIT') {!! isset($list->amount) && abs($list->amount) > 0 ? convertDecimelPoint(abs($list->amount)) : 0 !!}
@endif
{!! $debit_value->Account->name ?? '' !!} A/C Debit {!! isset($debit_value->amount) && $debit_value->amount ? convertDecimelPoint(abs($debit_value->amount)) : 0 !!}
To {!! $credit_value->Account->name ?? '' !!} A/C {!! isset($credit_value->amount) && $credit_value->amount ? convertDecimelPoint($credit_value->amount) : 0 !!}
No Data Found