@extends('admin.layout.master') @section('title','VOUCHER MANAGEMENT') @section('custom_style') @endsection @section ('content')

{{strtoupper(str_replace('_',' ',$voucher_type['name']))}}

@if (!@$voucher) @include('accounts.voucher.invoice_install_form', ['type'=> $voucher_type['type']])
@else @endif @csrf
@php $cash_bank_type=(($voucher_type['type']==1)||($voucher_type['type']==3))?1:2; $payment=(($voucher_type['type']==1)||($voucher_type['type']==2))?1:0; $optionHtml=''; @endphp @include('accounts.voucher.voucher_header')
{{__('obs.invoice_list')}} {{($voucher_type['type']%2)==1?'Paid':'Collect'}} {{__('obs.amount')}}
{{__('obs.sl')}} {{__('obs.date')}} {{__('obs.invoice_no')}} {{__('obs.billed_amount')}} {{__('obs.due')}} {{__('obs.amount')}}
@if (@$voucher) @php $journals = $voucher->journals->where('type', $voucher_type['type']==1?1:0)->values(); @endphp @foreach ($journals as $j=> $jr) @endforeach @else @for ($j = 0; $j < 1; $j++) @endfor @endif
{{__('obs.sl')}} {{__('obs.group')}} {{__('obs.ledger_title')}} {{__('obs.cost_center')}} {{__('obs.note')}} {{__('obs.amount')}}
{{$payment==0?'DR':'CR'}}-{{($j+1)}}
{{$payment==0?'DR':'CR'}}-{{($j+1)}}
@if ($j > 0) @endif
{{__('obs.transaction_total')}} :
@include('admin.global.loader') @include('accounts.voucher.modal_accounts_ledger') @include('accounts.voucher.modal_head_accounts_code') @include('accounts.voucher.modal_previous_voucher') @endsection @section('script') @include('accounts.voucher.voucher_js') @stop