@php $is_recovery_module = isRecoveryModule(); $is_detailed = $report_type == 'detailed'; $total_received_amount = $total_amount = $counter = 0; $check_approval = $common->check_approval('RV'); $bank_heads = []; $colspan1 = 11; if($is_recovery_module){ $colspan1 += 1; } if(!$is_detailed){ $colspan1 -= 2; } @endphp
{{ config('settings.company_name') }}
{{ config('settings.address_1') }}
{{ $heading }}
@if ($search_by['from'] && $search_by['to']) From: {{ date(config('settings.date_format'), strtotime(str_replace('/', '-', $search_by['from']))) }} To: {{ date(config('settings.date_format'), strtotime(str_replace('/', '-', $search_by['to']))) }} @else {{ 'Upto ' . date(config('settings.date_format'), strtotime(now())) }} @endif
@if ($is_detailed) @endif @if($is_recovery_module) @endif @if ($is_detailed) @endif @if ($is_detailed) @endif @if ($check_approval) @endif @foreach ($actual_receiveds as $actual_received) @php $total_receipt_amount = $actual_received->actualReceivedItem->sum('received_amount'); $sell = $actual_received->sells; if ($item->type == 'documentation_charges') { $total_receipt_amount = $actual_received->schedule_general_receipt_items->sum('received_amount'); $sell = $actual_received->schedule_general_receipt_items->first()->sell; } $product = $sell->product; $branch = $actual_received->branch; $dr_transaction = $actual_received->dr_transaction; $cr_transaction = $actual_received->cr_transaction; $dr_head = $actual_received->dr_head; $approved = $cr_transaction->is_approved; $approval_status = 'Not Approved'; $approval_badge = 'badge badge-warning'; $route = 'javascript:void(0);'; $target = ''; $actualReceivedItems = $actual_received->actualReceivedItem; $reference = '-'; if(!empty($actual_received->references)){ $reference = $actual_received->references->implode('reference' , ', '); } elseif(!empty($actual_received->particulars)){ $reference = $actual_received->particulars; } if ($approved) { $approval_status = 'Approved'; $approval_badge = 'badge badge-success'; } if (checkRolePermission('Receipts.Edit')) { $route = route('actual_receipt.edit', ['id' => $actual_received->id]); $target = '_blank'; } $bank_heads[$dr_head->name] += $total_receipt_amount; @endphp @foreach ($actualReceivedItems as $actualReceivedItem) @if ($is_detailed) @endif @if($is_recovery_module) @endif @if ($is_detailed) @endif @if ($is_detailed) @endif @if ($is_detailed) @endif @if ($check_approval) @endif @endforeach @php $total_received_amount += $total_receipt_amount; @endphp @endforeach
{{ __('lang.s_no') }} {{ __('lang.receipt_no') }}{{ __('lang.term') }} {{ __('lang.due_date') }}{{ __('lang.project') }} {{ __('lang.product_unit_id') }} {{ __('lang.block') }} {{ __('lang.floor') }}{{ __('lang.agent') }}{{ __('lang.registration_no') }} {{ __('lang.sell_date') }} {{ __('lang.reference') }}/{{ __('lang.particulars') }} {{ __('lang.received') }} {{ $transaction->systemSettingCurrency() }}{{ __('lang.coa_dr') }} {{ __('lang.coa_cr') }}{{ __('lang.mode_of_payment') }} {{ __('lang.voucher_date') }} {{ __('lang.instrument_no') }}{{ __('lang.instrument_date') }} {{ __('lang.created_by') }}{{ __('lang.approval_status') }}
{{ ++$counter }} {{ $actual_received->receipt_no }} {{ $actualReceivedItem->term }} {{ $transaction->date_format($actualReceivedItem->schedule->schedule_date) }} {{ $branch->name }} {{ $product->product_unique_id ?? '-' }} {{ $product->block->name ?? '-' }} {{ $product->floor->name ?? '-' }}{{ $sell->SellAssignRecovery->recoveryAgent->name ?? '-'}}{{ $sell->registration_no ?? '-' }} {{ $transaction->date_format($sell->sale_date_v2) ?? '-' }} {{ $reference }} {{ $transaction->convert_money_format($actualReceivedItem->received_amount) }}{{ $dr_transaction->IncomeExpenseHead->name }} {{ $cr_transaction->IncomeExpenseHead->name }}{{ $dr_head->name }} {{ $transaction->date_format($actual_received->date_of_collection_new) }} {{ $actual_received->cheque_no ?? '-' }}{{ $actual_received->cheque_date ?? '-' }}{{ $actual_received->createdby->name }} {{ $approval_status }}
{{ __('lang.total') }} {{ $transaction->convert_money_format($total_received_amount) }}
@if (!$is_detailed) @foreach ($bank_heads as $head_name => $amount) @endforeach
{{ __('lang.head_name') }} {{ __('lang.amount') }}
{{ $head_name }} {{ $transaction->convert_money_format($amount) }}
{{ __('lang.total') }} {{ $transaction->convert_money_format(array_sum($bank_heads)) }}
@endif