@if(count($orders) > 0) @php $i = 1; @endphp @foreach($orders as $data) @if(App\Model\Orders::getIBEntry($data->id) && count(App\Model\Orders::getIBEntry($data->id)) > 0) @foreach(App\Model\Orders::getIBEntry($data->id) as $kIb => $ib) @endforeach @endif @php $i++; @endphp @endforeach @endif
No. Date Voucher DOP Branch Name Amount Remark Transaction Actions
{{ $no++ }} @if(App\Model\Orders::getIBEntry($data->id) && count(App\Model\Orders::getIBEntry($data->id)) > 0) @endif {{ changeDateFormate($data->date) }} {{ getMerchantVoucherType($data->voucher_type_id) }} {{ getDOPMerchantName(getDOPMerchantbySlug($data->dop_slug,$data->ho_id)) }}
@if(count(App\Model\Orders::getItemListbyMain($data->id)) > 0) @if($data->invoice_file != null) {{ getFileName($data->invoice_file) }}
@endif @if($data->transaction_type_slug != 'pbills') @if($data->dop_slug == 'cash-bill-paid') Bill No : {{ $data->bill_no }}
Bill Date : {{ changeDateFormate($data->bill_date) }}
@endif @foreach(App\Model\Orders::getItemListbyMain($data->id) as $item => $valItem)
Item Name : {{ getItemMerchantListTitle($valItem->item_id,$data->ho_id) }}
Amount : {{ getCurrencySymbolByHo($data->ho_id) }} {{ $valItem->amount }}
Dr : {{ str_replace('Branch', getMechantShortCode($data->auto_mer_id).'-'.getBranchCode($data->auto_mer_id), getAccountHeadByIdMerchant($valItem->dr_account_head))}}
Cr : {{ str_replace('Branch', getMechantShortCode($data->auto_mer_id).'-'.getBranchCode($data->auto_mer_id), getAccountHeadByIdMerchant($valItem->cr_account_head))}}
@if($valItem->invoice_file != null) {{ getFileName($valItem->invoice_file) }}@endif @endforeach @endif @else
@if($data->transaction_type_slug == 'Ctfr-IB') @if($data->cashinout == 'out') Dr : {{ str_replace('Branch', getMechantShortCode($data->parent_merchant_id).'-'.getBranchCode($data->parent_merchant_id), getAccountHeadByIdMerchant($data->dr_account_head))}}
Cr : {{ str_replace('Branch', getMechantShortCode($data->merchant_id).'-'.getBranchCode($data->merchant_id), getAccountHeadByIdMerchant($data->cr_account_head))}}
@endif @if($data->cashinout == 'in') Dr : {{ str_replace('Branch', getMechantShortCode($data->merchant_id).'-'.getBranchCode($data->merchant_id), getAccountHeadByIdMerchant($data->dr_account_head))}}
Cr : {{ str_replace('Branch', getMechantShortCode($data->parent_merchant_id).'-'.getBranchCode($data->parent_merchant_id), getAccountHeadByIdMerchant($data->cr_account_head))}}
@endif @elseif($data->transaction_type_slug == 'Ctfr-MM') Dr : {{ str_replace('Branch', getMechantShortCode($data->receiver_merchant_id).'-'.getBranchCode($data->receiver_merchant_id), getAccountHeadByIdMerchant($data->dr_account_head))}}
Cr : {{ str_replace('Branch', getMechantShortCode($data->sender_merchant_id).'-'.getBranchCode($data->sender_merchant_id), getAccountHeadByIdMerchant($data->cr_account_head))}}
@else Dr : {{ str_replace('Branch', getMechantShortCode($data->auto_mer_id).'-'.getBranchCode($data->auto_mer_id), getAccountHeadByIdMerchant($data->dr_account_head))}}
Cr : {{ str_replace('Branch', getMechantShortCode($data->auto_mer_id).'-'.getBranchCode($data->auto_mer_id), getAccountHeadByIdMerchant($data->cr_account_head))}}
@endif @if(!empty($data->invoice_file)) {{ getFileName($data->invoice_file) }} @endif @endif
{{ getMechantShortCode($data->auto_mer_id) }}-{{ getBranchCode($data->auto_mer_id) }} {{ getCurrencySymbolByHo($data->ho_id) }} {{ $data->amount }} @if($data->transaction_type_slug == 'CexpWB' || $data->transaction_type_slug == 'CexpPV' || $data->transaction_type_slug == 'CDB' || ($data->transaction_type_slug == 'Ctfr-MM' && $data->transfer_status == 'Payment') || ($data->transaction_type_slug == 'Ctfr-IB' && $data->cashinout == 'out')) @else @endif @if($data->remark != '') Remarks : {{ $data->remark }} @endif
@if($data->remark_maker != '') Clarification : {{ $data->remark_maker }} @endif
ID: {{ $data->id }}
Status: {{ getMerchantTransactionStatusNamebySlug($data->status_slug,$data->ho_id) }}
@if(checkPermissionOnWeb('MyTransactions','view') > 0) View @endif
{{ changeDateFormate($ib->date) }} {{ getMerchantVoucherType($ib->voucher_type_id) }} {{ getDOPMerchantName(getDOPMerchantbySlug($ib->dop_slug,$ib->ho_id)) }} @if($ib->transaction_type_slug == 'Ctfr-IB') @if($ib->cashinout == 'out') Payment @endif @if($ib->cashinout == 'in') Receipt @endif @endif
@if(count(App\Model\Orders::getItemListbyMain($ib->id)) > 0) @if($ib->dop_slug == 'cash-bill-paid') Bill No : {{ $ib->bill_no }}
Bill Date : {{ changeDateFormate($ib->bill_date) }}
@endif @foreach(App\Model\Orders::getItemListbyMain($ib->id) as $item => $valItem)
Item Name : {{ getItemMerchantListTitle($valItem->item_id,$ib->ho_id) }}
Amount : {{ getCurrencySymbolByHo($ib->ho_id) }} {{ $valItem->amount }}
Dr : {{ str_replace('Branch', getMechantShortCode($ib->auto_mer_id).'-'.getBranchCode($ib->auto_mer_id), getAccountHeadByIdMerchant($valItem->dr_account_head))}}
Cr : {{ str_replace('Branch', getMechantShortCode($ib->auto_mer_id).'-'.getBranchCode($ib->auto_mer_id), getAccountHeadByIdMerchant($valItem->cr_account_head))}}
{{ getFileName($valItem->invoice_file) }} @endforeach @else
@if($ib->transaction_type_slug == 'Ctfr-IB') @if($ib->cashinout == 'out') Dr : {{ str_replace('Branch', getMechantShortCode($ib->parent_merchant_id).'-'.getBranchCode($ib->parent_merchant_id), getAccountHeadByIdMerchant($ib->dr_account_head))}}
Cr : {{ str_replace('Branch', getMechantShortCode($ib->merchant_id).'-'.getBranchCode($ib->merchant_id), getAccountHeadByIdMerchant($ib->cr_account_head))}}
@endif @if($ib->cashinout == 'in') Dr : {{ str_replace('Branch', getMechantShortCode($ib->parent_merchant_id).'-'.getBranchCode($ib->parent_merchant_id), getAccountHeadByIdMerchant($ib->dr_account_head))}}
Cr : {{ str_replace('Branch', getMechantShortCode($ib->merchant_id).'-'.getBranchCode($ib->merchant_id), getAccountHeadByIdMerchant($ib->cr_account_head))}}
@endif @endif {{ getFileName($ib->invoice_file) }} @endif
{{ getMechantShortCode($ib->auto_mer_id) }}-{{ getBranchCode($ib->auto_mer_id) }} {{ getCurrencySymbolByHo($ib->ho_id) }} {{ $ib->amount }} @if($ib->transaction_type_slug == 'CexpWB' || $ib->transaction_type_slug == 'CexpPV' || $ib->transaction_type_slug == 'CDB' || $ib->transaction_type_slug == 'Ctfr-IB' && $ib->cashinout == 'out') @else @endif @if($ib->remark != '') Remarks : {{ $ib->remark }} @endif
@if($ib->remark_maker != '') Clarification : {{ $ib->remark_maker }} @endif
ID: {{ $ib->id }}
Status: {{ getMerchantTransactionStatusNamebySlug($ib->status_slug,$ib->ho_id) }}
@if(checkPermissionOnWeb('MyTransactions','view') > 0) View @endif
Showing {{ $orders->firstItem() }} to {{ $orders->lastItem() }} of {{ $orders->total() }} entries
{!! $orders->appends(array('paginate'=>$paginate,'txtsearchable' => $txtsearchable,'parent_merchant_id' => $parent_merchant_id))->links() !!}