@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 {{-- Office Copy --}} {{-- @for ($i = 0; $i < $receipt_copy; $i++) --}} @foreach ($types as $type)
@include('admin.partials.receipt-header', ['extra' => $extra,'sell'=>$items['sell']])
{{ $type }}
Receipt No.: {{ $receipt->id ?? '-' }} Date: {{ $transaction->date_format($receipt->date_of_collection_new) ?? '-' }} Voucher #: {{ $receipt->receipt_no ?? '-' }} Rec by: {{ $receipt->created_user->name ?? '-' }}
Received with thanks from Mr./Mrs./Miss.: {{ $receipt->sells->customer->name ?? '-' }}
S/O. W/O. D/O.: {{ $receipt->sells->customer->father_or_husband_name }} Contact #: {{ $receipt->sells->customer->phone }}
Mode of Pay: {{ $receipt->made_of_payment }} Bank: @if($receipt->made_of_payment != 'Cash') {{ $receipt->dr_head->name ?? '' }} @else - @endif P.O/ Cheque #: {{ $receipt->cheque_no ?? '-' }} Dated: {{ $transaction->date_format($receipt->cheque_date) ?? '-' }}
Plot #: {{ $receipt->sells->productIntId->product_unique_id ?? '-' }} Block #: {{ $receipt->sells->productIntId->block->name ?? '-' }} Type: {{ $receipt->sells->productIntId->type->name ?? '-' }} Size: {{ $receipt->sells->productIntId->flat_size ?? '-' }} {{ $receipt->sells->productIntId->size_in ?? '-' }}
@foreach ($receipt->actualReceivedItem as $actualReceivedItem) @endforeach
S# Mode of Payment No of Installment Installment {{$transaction->systemSettingCurrency()}} Received {{$transaction->systemSettingCurrency()}}
{{ $loop->iteration }} {{ $receipt->made_of_payment }} {{ $actualReceivedItem->schedule->term }} {{ $transaction->convert_money_format($actualReceivedItem->schedule->payable_amount) }} {{ $transaction->convert_money_format($actualReceivedItem->schedule->payment_received_amount) }}
Grand Total {{ $transaction->convert_money_format($receipt->actual_amount) }}
Rupees: {{ $transaction->convert_number_to_words($receipt->actual_amount) }} ONLY (This Receipt is valid subject to realizations of cheque)

For {{ config('settings.company_name') }}
Print Date {{ \Carbon\Carbon::now() }}
{{ auth()->user()->name }}
@endforeach