@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($errorMessage != '')
{{ $errorMessage }}
@endif
@if(Auth::user()->admin_role_id == 1)
@else @if(getMechantIds() && count(getMechantIds()) > 1 )
@endif @endif

@if(getMerchantOrderBookSlug($order_book_id) != 'payables')
Net balance is YTD: {{ $net_balance }} ({{ changeDateFormate($day_book_date) }})
  • Day Op bal: {{ $opening_net_balance }}

    Day total: {{ $day_total }}

    Day cl bal: {{ $closing_net_balance }}

    Date: {{ changeDateFormate($day_book_date) }}

@endif
@if($is_allow_day_close == 1) @if($previous > 0) Previous @endif @if($next > 0 && $is_checker_close_day == 1) Next @endif @else Previous @if($NextDate <= date('Y-m-d')) Next @endif @endif
@if($isShow == 1 && $OpenDate >= $day_book_date && $is_allow_day_close == 1 && getMerchantOrderBookSlug($order_book_id) != 'payables') DAY CLOSE @endif
@if(count($top_icon) > 0) @foreach($top_icon as $ico => $val) @if($val['app_allow'] == 1 && $val['app_slug'] == 's3_folder' && $val['app_title_bar_position'] == 'top') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 's3_folder' && $val['app_title_bar_position'] == 'bottom') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'day_summary' && $val['app_title_bar_position'] == 'top') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'day_summary' && $val['app_title_bar_position'] == 'bottom') @endif @if($book_slug == 'cash-book' && $val['app_allow'] == 1 && $val['app_slug'] == 'day_limit' && $val['app_title_bar_position'] == 'top') @endif @if($book_slug == 'cash-book' && $val['app_allow'] == 1 && $val['app_slug'] == 'day_limit' && $val['app_title_bar_position'] == 'bottom') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'draft_online' && $val['app_title_bar_position'] == 'top') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'draft_online' && $val['app_title_bar_position'] == 'bottom') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'calendar' && $val['app_title_bar_position'] == 'top') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'calendar' && $val['app_title_bar_position'] == 'bottom') @endif @if($book_slug == 'cash-book' && $val['app_allow'] == 1 && $val['app_slug'] == 'get_vocher' && $val['app_title_bar_position'] == 'top') @if(Auth::user()->is_show_voucher_type == 1) @endif @endif @if($book_slug == 'cash-book' && $val['app_allow'] == 1 && $val['app_slug'] == 'get_vocher' && $val['app_title_bar_position'] == 'bottom') @if(Auth::user()->is_show_voucher_type == 1) @endif @endif @if(checkAddLimit(Auth::user()->id,$mechants_id,$day_book_date,'add',$order_book_id) == 1) @if($val['app_allow'] == 1 && $val['app_slug'] == 'add_entry' && $val['app_title_bar_position'] == 'top') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'add_entry' && $val['app_title_bar_position'] == 'bottom') @endif @endif @endforeach @else @if(Auth::user()->is_show_voucher_type == 1) @endif @endif
@if(getMerchantOrderBookSlug($order_book_id) != 'payables')
Net balance is YTD: {{ $net_balance }} ({{ changeDateFormate($day_book_date) }})
  • Day Op bal: 0

    Day total: {{ $draft_day_total }}

    Day cl bal: {{ $draft_day_total }}

    Date: {{ changeDateFormate($day_book_date) }}

@endif
@if($next > 0 && $is_checker_close_day == 1) Next @endif @if(count($top_icon) > 0) @foreach($top_icon as $ico => $val) @if($val['app_allow'] == 1 && $val['app_slug'] == 's3_folder' && $val['app_title_bar_position'] == 'top') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 's3_folder' && $val['app_title_bar_position'] == 'bottom') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'draft_offline' && $val['app_title_bar_position'] == 'top') @if($OpenDate >= $day_book_date) @else @endif @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'draft_offline' && $val['app_title_bar_position'] == 'bottom') @if($OpenDate >= $day_book_date) @else @endif @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'calendar' && $val['app_title_bar_position'] == 'top') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'calendar' && $val['app_title_bar_position'] == 'bottom') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'get_vocher' && $val['app_title_bar_position'] == 'top') @if(Auth::user()->is_show_voucher_type == 1) @endif @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'get_vocher' && $val['app_title_bar_position'] == 'bottom') @if(Auth::user()->is_show_voucher_type == 1) @endif @endif @if(checkAddLimit(Auth::user()->id,$mechants_id,$day_book_date,'add',$order_book_id) == 1) @if($val['app_allow'] == 1 && $val['app_slug'] == 'add_entry' && $val['app_title_bar_position'] == 'top') @endif @if($val['app_allow'] == 1 && $val['app_slug'] == 'add_entry' && $val['app_title_bar_position'] == 'bottom') @endif @endif @endforeach @else @if($OpenDate >= $day_book_date) @else @endif @if(Auth::user()->is_show_voucher_type == 1) @endif @endif
{{ getTitleInPage() }} - List
@if(getMerchantOrderBookSlug($order_book_id) == 'payables') @else @endif @if(count($orders) > 0) @php $i = 1; @endphp @foreach($orders as $data) @if(getMerchantOrderBookSlug($order_book_id) == 'payables') @else @endif @php $i++; @endphp @endforeach @endif
No. Date Voucher Type DOP Branch NameGross AmountOpening Amount ClosingRemark Transaction Status Actions
{{ $no++ }} {{ 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->dr_account_head != null && $data->cr_account_head != null) @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 @endif @if($data->invoice_file != null) {{ getFileName($data->invoice_file) }} @endif @endif
{{ getMechantShortCode($data->auto_mer_id) }}-{{ getBranchCode($data->auto_mer_id) }} {{ getCurrencySymbolByHo($data->ho_id) }} {{ $data->amount }} {{ $data->opening_balance }} {{ 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->bill_book_balance !== null){{ $data->bill_book_balance }}@else 0 @endif @if($data->remark != '') Remarks : {{ $data->remark }} @endif
@if($data->remark_maker != '') Clarification : {{ $data->remark_maker }} @endif
{{ getMerchantTransactionStatusNamebySlug($data->status_slug,$data->ho_id) }} View @if(checkAddLimit(Auth::user()->id,$data->auto_mer_id,$data->date,'edit',$order_book_id) == 1) @if($data->transaction_type == 25) @elseif($data->transaction_type == 26) @elseif($data->transaction_type_slug != 'OPBalance') @endif @endif @if(checkAddLimit(Auth::user()->id,$data->auto_mer_id,$data->date,'delete',$order_book_id) == 1) @endif
{{ getTitleInPage() }} - List
@if(getMerchantOrderBookSlug($order_book_id) == 'payables') @else @endif @if($isShow == 1) @endif @if(count($ordersDraft) > 0) @php $i = 1; @endphp @foreach($ordersDraft as $data) @if(getMerchantOrderBookSlug($order_book_id) == 'payables') @else @endif @if($isShow == 1) @endif @php $i++; @endphp @endforeach @endif
No. Date Voucher Type DOP Branch NameGross AmountOpening Amount ClosingRemark Transaction StatusActions
{{ $dno++ }} {{ 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))}}
{{ getFileName($valItem->invoice_file) }} @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 {{ getFileName($data->invoice_file) }} @endif
{{ getMechantShortCode($data->auto_mer_id) }}-{{ getBranchCode($data->auto_mer_id) }} {{ getCurrencySymbolByHo($data->ho_id) }} {{ $data->amount }} {{ $data->opening_balance }} {{ 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->bill_book_balance !== null){{ $data->bill_book_balance }}@else 0 @endif @if($data->remark != '') Remarks : {{ $data->remark }} @endif
@if($data->remark_maker != '') Clarification : {{ $data->remark_maker }} @endif
{{ getMerchantTransactionStatusNamebySlug($data->status_slug,$data->ho_id) }} @if($data->transaction_type == 25) @elseif($data->transaction_type == 26) @elseif($data->transaction_type_slug != 'OPBalance') @endif
@endsection @section('footer') @parent @endsection @section('extraa_script_and_js') @parent @endsection