@php $receipt = $data['item']; $office = request()->get('office') ?? 0; $client = request()->get('client') ?? 0; $types = []; if ($office) { $types[] = 'Office Copy'; } if ($client) { $types[] = 'Client Copy'; } $receipt_copy = intval($office) + intval($client); @endphp @foreach ($types as $type)
@include('admin.partials.image-watermark') @include('admin.partials.branch-watermark') @include('admin.leasing.payment_voucher.pdf_templates.header', ['extra' => $extra])

Payment Voucher

@if($type == "Office Copy") @php $income_expense_head_id = $payment_voucher->bank_id; @endphp @else @endif
Voucher No :{{($payment_voucher->pv_no)}}
Voucher Type :{{ucfirst(trans($payment_voucher->type))}}
Project Name :{{$payment_voucher->branch->name }}
Bank Name : {{ App\Models\Common::showHeads(App\Models\IncomeExpenseHead::find($income_expense_head_id)) ?? '-' }}
Mode of Payment :{{$payment_voucher->mode_of_payment }}
Location : {{ $payment_voucher->branch->location }}
Date : {{ date(config('settings.date_format'), strtotime($payment_voucher->voucher_date)) }}
{{$type}}
@include('admin.leasing.payment_voucher.pdf_templates.payment_details_dr') {{-- @include('admin.leasing.payment_voucher.pdf_templates.payment_details_cr') --}} @php $officeTotalAmount += $payment_voucher->amount; @endphp @if($payment_voucher->mode_of_payment == 'Cheque In Hand' || $payment_voucher->mode_of_payment == 'Bank' ) @endif
Cheque Status: {{ $payment_voucher->cheque_status }}
Amount {{$transaction->systemSettingCurrency()}}: {{ $transaction->convert_money_format($officeTotalAmount) }}
Amount In Words : {{ $transaction->convert_number_to_words($officeTotalAmount) }} {!! config('settings.currency_code') !!} only
Issued By : {{ App\Models\User::where(['email'=>$payment_voucher->created_by])->first()->name }}
- - - - - - - - - - - - - -
Issued By
- - - - - - - - - - - - - -
Checked By
- - - - - - - - - - - - - -
Approved By
- - - - - - - - - - - - - -
Received By
@endforeach