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 | @if($list->transaction_type=='DEBIT'){!! $list->Account->name ?? '' !!} A/C {!! $list->transaction_type !!} | @elseTo {!! $list->Account->name ?? '' !!} A/C {!! $list->transaction_type !!} | @endif
@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 |
{{-- @foreach($list->DebitTransaction as $credit_key => $debit_value)
@if($credit_key != 0)
{!! $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 |