{{-- @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')
| 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) }}
{{$model->remarks}}
| Sr | Acc Code | Acc Title | Narration | Instrument# | Inst. Date | @if($model->voucher_type->short =='PV') {{--Debit | --}}Amount | @elseAmount | {{--Credit | --}} @endif
|---|---|---|---|---|---|---|---|---|---|
| {{$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)}} | --}}||
| Total ({{$model->currency->code}}) | {{number_format($model->items->sum('amount'),2)}} | {{--{{number_format($model->items->sum('credit'),2)}} | --}}|||||||
| Total ({{$model->other_currency->code}}) | {{number_format(($model->items->sum('debit')*$model->rate),2)}} | {{number_format(($model->items->sum('credit')*$model->rate),2)}} | |||||||