@extends('layouts.pdf') @section('title') {{ $extra['module_name'] }} @endsection @section('content')
@include('admin.partials.header', ['extra' => $extra]) @php $max_value_other = max(count($dr_transactions_other),count($cr_transactions_other)); $other_head_range = range(0,$max_value_other - 1); $total_received_other = 0; $total_paid_other = 0; $max_value_cash = max(count($dr_transactions_cash),count($cr_transactions_cash)); $cash_head_range = range(0,$max_value_cash - 1); $total_received_cash = 0; $total_paid_cash = 0; @endphp @foreach ($other_head_range as $key ) @php $dr_transaction_other = $dr_transactions_other[$key] ?? null; $dr_amount = $dr_transaction_other->amount ?? 0; $total_paid_other += $dr_amount; $cr_transaction_other = $cr_transactions_other[$key] ?? null; $cr_amount = $cr_transaction_other->amount ?? 0; $total_received_other += $cr_amount; if($report_type == 'summary'){ $other_head_dr_name = $dr_transaction_other->sub_group_name; $other_head_cr_name = $cr_transaction_other->sub_group_name; } else{ $head_data_dr = $transaction->getHeadData($dr_transaction_other->income_expense_head_id); $head_data_cr = $transaction->getHeadData($cr_transaction_other->income_expense_head_id); $other_head_dr_name = $head_data_dr->name2; $other_head_cr_name = $head_data_cr->name2; } @endphp @endforeach @foreach ($cash_head_range as $key ) @php $dr_transaction_cash = $dr_transactions_cash[$key] ?? null; $dr_amount = $dr_transaction_cash->amount ?? 0; $total_received_cash += $dr_amount; $cr_transaction_cash = $cr_transactions_cash[$key] ?? null; $cr_amount = $cr_transaction_cash->amount ?? 0; $total_paid_cash += $cr_amount; if($report_type == 'summary'){ $cash_head_dr_name = $dr_transaction_cash->sub_group_name; $cash_head_cr_name = $cr_transaction_cash->sub_group_name; } else{ $head_data_dr = $transaction->getHeadData($dr_transaction_cash->income_expense_head_id); $head_data_cr = $transaction->getHeadData($cr_transaction_cash->income_expense_head_id); $cash_head_dr_name = $head_data_dr->name2; $cash_head_cr_name = $head_data_cr->name2; } @endphp @endforeach

Overall Project Report

{{__('lang.sno')}} {{__('lang.collection')}} {{__('lang.amount')}} {{__('lang.sno')}} {{__('lang.payment')}} {{__('lang.amount')}}
{{ $cr_transaction_other ? $loop->iteration : ''}} {{ $other_head_cr_name }} {{ $cr_transaction_other ? $transaction->isNegative($cr_amount) : ''}} {{ $dr_transaction_other ? $loop->iteration : ''}} {{ $other_head_dr_name }} {{ $dr_transaction_other ? $transaction->isNegative($dr_amount) : ''}}
{{__('lang.total_received')}} {{$transaction->isNegative($total_received_other)}} {{__('lang.total_paid')}} {{$transaction->isNegative($total_paid_other)}}
{{__('lang.balance_upper')}} {{$transaction->isNegative($total_received_other - $total_paid_other)}}

Overall Cash / Bank Report

{{__('lang.sno')}} {{__('lang.collection')}} {{__('lang.amount')}} {{__('lang.sno')}} {{__('lang.payment')}} {{__('lang.amount')}}
{{ $dr_transaction_cash ? $loop->iteration : ''}} {{ $cash_head_dr_name }} {{ $dr_transaction_cash ? $transaction->isNegative($dr_amount) : ''}} {{ $cr_transaction_cash ? $loop->iteration : ''}} {{ $cash_head_cr_name }} {{ $cr_transaction_cash ? $transaction->isNegative($cr_amount) : ''}}
{{__('lang.total_received')}} {{$transaction->isNegative($total_received_cash)}} {{__('lang.total_paid')}} {{$transaction->isNegative($total_paid_cash)}}
{{__('lang.balance_upper')}} {{$transaction->isNegative($total_received_cash - $total_paid_cash)}}
@stop