{{-- @extends('docs.master', ['title' => 'Cash Payment Voucher '.$model->number]) --}} @extends(($model->value_master == 2) ? 'docs.mastertwo' : 'docs.master', ['title'=> 'Cash Payment Voucher '.$model->number]) @section('content')
{{--




--}}

{{settings()->get('company_name')}}


{{$model->voucher_type->voucher_type}}




{{-- --}} {{-- --}}
Date: {{date('d-m-Y',strtotime($model->voucher_date))}}
Voucher Number: {{$model->number}}
Account: {{$model->account->accountcode}}{{$model->account->accounttitle}}
Total: {{$model->currency->code}} {{number_format($model->amount,2) }}
Exchange Rate: {{$model->other_currency->code}} {{number_format($model->rate,2) }}
Account:     {{$model->account->accountcode}}   ||   {{$model->account->accounttitle}}
Total:      {{$model->currency->code}} {{number_format($model->amount,2) }}


@if($model->remarks) Narrations
{{$model->remarks}}
@endif
@if($model->voucher_type->short =='PV') {{-- --}} @else {{-- --}} @endif {{$i=1}} @foreach($model->items as $item) {{-- --}} @endforeach {{-- --}} {{-- --}}
Sr Acc Code Acc Title Narration Instrument# Inst. DateDebitAmountAmountCredit
{{$i++}} {{$item->account->accountcode}} {{$item->account->accounttitle}} {{isset($item->subledger->subledger_title) ? ' | '.$item->subledger->subledger_title : ''}}
{{$item->remarks}}
{{$item->chq_no}} {{date('d-m-Y',strtotime($item->chq_date))}} {{(number_format($item->amount,2))}} {{number_format($item->credit,2)}}
@php $digit = new NumberFormatter("en", NumberFormatter::SPELLOUT); @endphp
Amount In Words: {{ $digit->format($model->items->sum('debit'),2) }} Only.
@endsection