@extends('Admin.master_layout.master') @section('title', getTitleInPage()) @section('header_menu') @parent @endsection @section('sidebar_menu') @parent @endsection @section('content')

{{ getTitleInPage() }}


@if (Session::has('message'))
{!! Session::get('message') !!}
@endif @if (Session::has('error'))
{!! Session::get('error') !!}
@endif @if (Session::has('success'))
{!! Session::get('success') !!}
@endif
@if(Auth::user()->admin_role_id == 1)
@else @if(getMechantIds() && count(getMechantIds()) > 1 )
@endif @endif @if(count($parent_merchant) > 0)
@endif
@if($statusId == '')
@else
@endif
@if(checkPermissionOnWeb('MerchantUser','allow-back-date') > 0) @if($mechants_id > 0 && !empty($Admins)) Open Back Dates @endif @endif
{{ getTitleInPage() }} - List
@if(count($orders) > 0) @php $i = 1; @endphp @foreach($orders as $data) @php $i++; @endphp @endforeach @endif
No. Date Branch Name DOP User Details Opening Amount Closing Transaction Status Actions
{{ $no++ }} {{ changeDateFormate($data->date) }} {{ getMechantShortCode($data->auto_mer_id) }}-{{ getBranchCode($data->auto_mer_id) }} {{ getDOPMerchantName(getDOPMerchantbySlug($data->dop_slug,$data->ho_id)) }}
@if(count(App\Model\Orders::getItemListbyMain($data->id)) > 0) @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))}}
{{ getFileName($valItem->invoice_file) }} @endforeach @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 {{ getFileName($data->invoice_file) }} @endif
@if($data->order_creator_id > 0) Name : {{ getUserDetailsInfo($data->order_creator_id)->name }}
Email : {{ getUserDetailsInfo($data->order_creator_id)->email }}
Phone. : {{ getUserDetailsInfo($data->order_creator_id)->phone }} @if($data->order_creator_id > 0) @endif @endif
@if($data->opening_balance != null) {{ $data->opening_balance }} @endif {{ 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-IB' && $data->cashinout == 'out') @else @endif @if($data->bill_book_balance !== null){{ $data->bill_book_balance }}@else 0 @endif {{ getMerchantTransactionStatusNamebySlug($data->status_slug,$data->ho_id) }} @if(checkCheackerUser(Auth::user()->admin_role_id,Auth::user()->id) == 0 && getOpenDate($data->auto_mer_id) == $data->date) @if($data->transaction_type == 25) @elseif($data->transaction_type == 26) @elseif($data->transaction_type_slug != 'OPBalance') @endif @elseif(checkCheackerUser(Auth::user()->admin_role_id,Auth::user()->id) == 1 && $data->transaction_type_slug != 'Ctfr-IB') View @endif
@endsection @section('footer') @parent @endsection @section('extraa_script_and_js') @parent @endsection