{{ config('settings.address_1')}}, {{ config('settings.address_2')}}, {{ config('settings.city')}}
{{$heading}}
{{-- @if ($search['from'] != null && $search['to'] == null) @endif @if ($search['to'] != null && $search['from'] == null) @endif @if ($search['from'] == null && $search['to'] == null) @endif @if ($search['from'] != null && $search['to'] != null) @endif @if($search['block'] != 0) @else @endif @if($search['mode_of_Payment'] != 0) @else @endif
From : {{ date('Y-m-d', strtotime(str_replace('-', '/', $search['from']))) }}
To : {{ date('Y-m-d', strtotime(str_replace('-', '/', $search['to']))) }}
Search Till : {{ $current_date }}
From : {{ date('Y-m-d', strtotime(str_replace('-', '/', $search['from']))) . ' to ' . date('Y-m-d', strtotime(str_replace('-', '/', $search['to']))) }}
Project : {{ $search['project'] ?? 'All' }}
Block :{{ $search['block'] ?? 'All' }} All
Mode of Payment:{{ $search['mode_of_Payment'] }} All
Registeration No: {{ $search['registeration'] ?? 'N/A' }}
--}} @php $total_colspan = 13; if($report_type == 'detailed'){ $total_colspan += 4; } if($action == "Excel") { $total_colspan = $total_colspan + 2; } $enable_rider_fuel_charges = $search_by['enable_rider_fuel_charges']; @endphp @if ($report_type == 'detailed') @endif @if($action == "Excel") @endif @if ($report_type == 'detailed') @endif @if ($enable_rider_fuel_charges) @endif @php $summary = []; $grand_total = 0; $total_rider_amount = 0; @endphp @foreach ($items as $item) @php $cash = 0; $bank = 0; $online_transfer= 0; $other = 0; $cheque_in_hand = 0; $file_received = 0; $product = $item->sells->product; $references = $item->references->implode('reference' , ', '); $rider_amount = $item->receipt_rider_detail->amount ?? 0; $mode_of_payment = $item->made_of_payment; $terms = $item->actualReceivedItem->pluck('schedule.term')->implode(', '); $amount = $item->actualReceivedItem->sum('received_amount'); if($item->made_of_payment == 'Cash') { $cash = $amount; $total_cash += $amount; }else if($item->made_of_payment == 'Bank') { $bank = $amount; $total_bank += $amount; } else if($item->made_of_payment== 'Online Transfer') { $online_transfer = $amount; $total_online_transfer += $amount; }else if($item->made_of_payment== 'Cheque In Hand') { $cheque_in_hand = $amount; $total_cheque_in_hand += $amount; } else if($item->type == 'file received'){ $file_received = $amount; $total_file_received += $amount; $mode_of_payment = 'File Received'; }else if($item->made_of_payment == 'Other' && $item->type != 'file received') { $other = $amount; $total_other += $amount; } $amount += $rider_amount; $total_rider_amount += $rider_amount; $grand_total += $amount; $summary[$mode_of_payment][$item->bank_id] += $amount ; @endphp @if($report_type == 'detailed') @endif @if($action == "Excel") @endif @if($report_type == 'detailed') @endif @if($enable_rider_fuel_charges) @endif @endforeach @if($enable_rider_fuel_charges) @endif
{{__('lang.serial_no')}} {{__('lang.customer_name')}} {{__('lang.customer')}} {{__('lang.cnic')}} {{__('lang.registration_no')}} {{__('lang.internal_dealer_name')}} {{__('lang.external_dealer_name')}} {{__('lang.product_id')}}{{__('lang.size')}}{{__('lang.block')}} {{__('lang.size')}}{{__('lang.receipt_no')}} {{__('lang.terms')}} {{__('lang.receipt_date')}} {{__('lang.mode_of_payment')}}{{__('lang.account_dr')}} {{__('lang.reference')}} {{__('lang.particular')}}{{__('lang.cheque_no')}} {{$date_type == 'cheque_date' ? __('lang.cheque') : __('lang.voucher')}} {{__('lang.date')}} {{__('lang.cash')}} {{__('lang.bank')}} {{__('lang.cheque_in_hand')}} {{__('lang.online_transfer')}} {{__('lang.file_received')}} {{__('lang.other')}}{{__('lang.rider_fuel_charges')}}{{__('lang.total')}}
{{$loop->iteration}} {{ $item->sells->customer->name}} {{ $item->sells->customer->nid}} {{ $item->sells->registration_no }} {!! $item->internal_dealer_name ?? '-' !!} {!! $item->external_dealer_name ?? '-' !!} {{ $product->product_unique_id }}{{ $product->flat_size }}{{ $product->block->name }} {{ $product->flat_size }} - {{ $product->size_in }}{{ $item->receipt_no }} {{ $terms }} {{ $item->date_of_collection_new }} {{ $item->made_of_payment }}{{ $item->dr_head->name }} {{ $references }} {{ $item->particulars }}{{ $item->cheque_no ?? ' - ' }} {{ $transaction->date_format($item->cheque_date ?? ' - ') }} {{ $transaction->convert_money_format($cash) }} {{ $transaction->convert_money_format($bank) }} {{ $transaction->convert_money_format($cheque_in_hand) }} {{ $transaction->convert_money_format($online_transfer) }} {{ $transaction->convert_money_format($file_received) }} {{ $transaction->convert_money_format($other) }}{{ $transaction->convert_money_format($rider_amount) }}{{ $transaction->convert_money_format($amount) }}
{{__('lang.total')}} {{$transaction->convert_money_format($total_cash)}} {{$transaction->convert_money_format($total_bank)}} {{$transaction->convert_money_format($total_cheque_in_hand)}} {{$transaction->convert_money_format($total_online_transfer)}} {{$transaction->convert_money_format($total_file_received)}} {{$transaction->convert_money_format($total_other)}} {{$transaction->convert_money_format($total_rider_amount)}} {{$transaction->convert_money_format($grand_total)}}

{{__('lang.summary')}}:

@php ksort($summary); $grand_total_summary = 0; @endphp @foreach ($summary as $mode_of_payment =>$value) @php $sub_total = 0; @endphp @foreach ($value as $expense_head_id => $innerValue) @php $sub_total += $innerValue; $grand_total_summary += $innerValue; $head_name = \App\Models\IncomeExpenseHead::find($expense_head_id)->name; @endphp @endforeach @endforeach
{{$mode_of_payment}}
    {{ $head_name }} {{$transaction->convert_money_format($innerValue)}}
{{$mode_of_payment}} {{__('lang.sub_total')}} {{$transaction->convert_money_format($sub_total)}}
{{__('lang.grand_total')}} {{$transaction->convert_money_format($grand_total_summary)}}