{{-- @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')
{{$model->voucher_type->voucher_type}}
@endsection{{$model->voucher_type->voucher_type}}
@endsection {{--| Voucher Number: | {{$model->number}} |
|---|---|
| Date: | {{date('d-m-Y',strtotime($model->voucher_date))}} |
| Total: | {{$model->currency->code}} {{number_format($model->amount,2) }} |
| Voucher Currency: | {{$model->currency->name}} |
| Exchange Rate: | {{$model->other_currency->code}} {{number_format($model->rate,2) }} |
{{$model->remarks}}
| Sr | Acc Code | Acc Title | Narration | Instrument# | Debit | Credit |
|---|---|---|---|---|---|---|
| {{$i++}} | {{$item->account->accountcode}} | {{$item->account->accounttitle}} {{isset($item->subledger->subledger_title) ? ' | '.$item->subledger->subledger_title : ''}} |
{{$item->remarks}}
|
{{$item->chq_no}} | {{(number_format($item->debit,2))}} | {{number_format($item->credit,2)}} |
| Total ({{$model->currency->code}}) | {{number_format($model->items->sum('debit'),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)}} | ||||