@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'; } if(empty($types)) { $types[] = 'Office 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.lease_receipt_voucher.lease_receipts.template_1.partial.header', ['extra' => $extra])

Receipt Voucher

{{-- @php $income_expense_head_id = $lease_receipt_voucher->bank_id; @endphp --}}
Voucher No :{{($lease_receipt_voucher->voucher_no)}}
Project Name :{{$lease_receipt_voucher->branch->name }}
Lease No :{{$lease_receipt_voucher->lease->lease_no }}
Bank / Cash : {{ App\Models\Common::showHeads(App\Models\IncomeExpenseHead::find($income_expense_head_id)) ?? '-' }}
{{-- --}}
Mode of Payment :{{($lease_receipt_voucher->mode_of_payment ?? '-')}}
Location :{{$lease_receipt_voucher->branch->location}}
Date : {{ date(config('settings.date_format'), strtotime($lease_receipt_voucher->voucher_date)) }}
Customer : {{ $lease_receipt_voucher->lease->customer->name ??'-' }}
Property/Unit :{{$lease_receipt_voucher->lease->product->product_unique_id ?? '-' }}
{{$type}}
Receipt Details
@if (!empty($lease_receipt_voucher->lease_receipt_items)) @foreach ($lease_receipt_voucher->lease_receipt_items as $value) @endforeach @endif
S. No. Payment Term Mode Of Payment Account Amount ( {{ config('settings.is_code') == 'code' ? config('settings.currency_code') : config('settings.currency_symbol') }} )
{{ $loop->iteration }} {{ $value->term }} {{ $value->mode_of_payment }} {{ App\Models\IncomeExpenseHead::find($value->bank_id)->name ??'-' }} {{ $transaction->convert_money_format($value->amount) }}
Total {{ $transaction->convert_money_format($lease_receipt_voucher->lease_receipt_items->sum('amount')) }}
@php $officeTotalAmount += $lease_receipt_voucher->amount; @endphp {{-- @if($lease_receipt_voucher->mode_of_payment == 'Cheque In Hand' || $lease_receipt_voucher->mode_of_payment == 'Bank' ) @endif --}}
Cheque Status: {{ $lease_receipt_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'=>$lease_receipt_voucher->created_by])->first()->name }}
Reference No: {{ ($lease_receipt_voucher->references->implode('reference' , ',')) ?? '-' }}
- - - - - - - - - - - - - - - - - - - - - - -
Authorized Signature
- - - - - - - - - - - - - - - - - - - - - -
Authorized Stamp
@endforeach