{{-- Schedule Grid Start --}}
@if($template != 2) @endif @foreach ($schedules as $schedule ) @php $references = ''; if($schedule->show_date == 0) { $show_date_amount = $schedule->payable_amount; } $payable_amount = $schedule->unofficial_payable_amount; $received_amount = $schedule->unofficial_payment_received_amount; if(isUnofficialNewStructure($sell->branch_id)){ $payable_amount = $schedule->unofficial_payment_received_amount; } $duplicate_row = 0; $outstanding = ($payable_amount - $received_amount); //Returns true to dates till current month $tillMonth = $outstanding && $schedule->schedule_date<=getLastDay(); $tr_till_month_class = ($tillMonth) ? 'bold' : ''; $total_sale_amount += $payable_amount; $total_received += $received_amount; $total_outstanding += $outstanding; $total_till_month += ($tillMonth) ? $outstanding- $show_date_amount : 0; $runtime_surcharge = $common::getScheduleRunTimeSurcharge($schedule->id); @endphp @foreach($schedule->schedule_payment_items as $actual_received_item) @php $rowSpan = count($schedule->schedule_payment_items); if(!empty($actual_received_item->actual_received->references)) { $references = []; foreach($actual_received_item->actual_received->references as $reference) { $references[] =$reference->reference; } $references = implode(', ',$references); } if($settings->cheaque_no) { $reference_no = $references; } else { $reference_no = $actual_received_item->actual_received->cheque_no; $reference_no = (empty($reference_no)) ? $actual_received_item->actual_received->cheque_no : $actual_received_item->actual_received->cheque_no; } $mode_of_payment = $actual_received_item->actual_received->made_of_payment; $reference_no .= !empty($actual_received_item->received_amount) ? $show_mode_of_payment ? " ($mode_of_payment)" : "" : ""; @endphp @if($duplicate_row == 0) @if($schedule->show_date == 1) @else @endif @if($template != 2) @endif @endif @if($duplicate_row == 0) @endif @php $duplicate_row=1; @endphp @endforeach @endforeach @if($template != 2) @endif
Payment Amount {{$transaction->systemSettingCurrency()}} Due Date{{__('lang.type')}}Paid Paid Date @if($template != 2)Reference @else Receipt No @endif Outstanding
{{ $schedule->term }} {{ $transaction->convert_money_format($payable_amount) }}{{ $transaction->date_format($schedule->schedule_date) }} - {{ $schedule->installment_repeat ?? '-' }}{{ $transaction->convert_money_format($actual_received_item->received_amount) }} {{ $transaction->date_format($actual_received_item->actual_received->date_of_collection_new) ?? '-' }} @if($actual_received_item->already_received_ref) {{$actual_received_item->already_received_ref}} @elseif($template == 2) {{ $actual_received_item->actual_received->receipt_no }} @else {{ $reference_no ?? '-'}} @endif @if($show_receipt_no_on_statement) {{$actual_received_item->actual_received->receipt_no}} @endif {{ $actual_received_item->actual_received->file_received->file_number ??'' }} {{ $transaction->convert_money_format($outstanding) }}
Total {{ $transaction->convert_money_format($total_sale_amount) }} {{ $transaction->convert_money_format($total_received) }} {{ $transaction->convert_money_format($total_outstanding) }}
{{-- STATEMENT SUMMARY Start --}} @include('admin.schedule-manage.statement-print-new.partial.statement_summary') {{-- STATEMENT SUMMARY End --}}