{{-- Schedule Grid Start --}} {{-- @if(($show_own_amount == "1") && !empty($data['sell']['own_amount']))
Own Description Own {{$transaction->systemSettingCurrency()}}
{{ $data['sell']['own_description'] ?? '-' }} {{ $transaction->convert_money_format($data['sell']['own_amount']) ?? 0 }}
Total {{ $transaction->convert_money_format($data['sell']['own_amount']) ?? 0}}
@endif --}}
@if($template != 2) @endif @if($show_surcharge) {{-- @if($template != 2) --}} {{-- @endif --}} @endif @foreach ($schedules as $schedule ) @php $duplicate_row = 0; $references = ''; if($schedule->show_date == 0) { $show_date_amount = $schedule->payable_amount; } if(request()->get('status') == '1'){ $payable_amount = $schedule->payable_amount; $payment_receieved = $schedule->payment_received_amount; if(isUnofficialNewStructure($sell->branch_id)){ $payable_amount = $schedule->payment_received_amount; } }else{ $payable_amount = $schedule->payable_amount + $schedule->unofficial_payable_amount; $payment_receieved = $schedule->payment_received_amount+ $schedule->unofficial_payment_received_amount; } $outstanding = ($payable_amount - $payment_receieved); //Returns true to dates till current month $tillMonth = $outstanding && $schedule->schedule_date && $schedule->schedule_date <= getLastDay(); $tr_till_month_class = ($tillMonth) ? 'bold' : ''; $total_sale_amount += $payable_amount; $total_received += $payment_receieved; $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)) ? $references : $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)" : "" : ""; $surcharge_items_amount = $actual_received_item->actual_surcharge_amount - $actual_received_item->surcharge_discount ?? 0; $surcharge_paid_items_amount = ($actual_received_item->surcharge_status == 'WAIVE') ? 0 :$actual_received_item->surcharge_payment; $surcharge_waive_items_amount = 0; $is_waived = (($actual_received_item->surcharge_status == 'WAIVE' || $schedule->surcharge_waive_detail->is_waived) && !$surcharge_paid_items_amount); if($actual_received_item->surcharge_status == 'WAIVE') { $surcharge_waive_items_amount = $actual_received_item->surcharge_amount; } if(!($schedule->payment_received_amount >0) ){ $surcharge_items_amount= $runtime_surcharge; $surcharge_paid_items_amount = 0; } $surcharge_items_amount = $actual_received_item->surcharge_net_amount ?? 0; if(empty($actual_received_item->actual_received_id)) { $surcharge_items_amount = $schedule->run_time_surcharge; } if($is_waived){ $surcharge_waive_items_amount = $surcharge_items_amount; } $total_surcharge += $surcharge_items_amount; $total_surcharge_paid += $surcharge_paid_items_amount; $total_surcharge_waive += $surcharge_waive_items_amount; @endphp @if($duplicate_row == 0) @if($schedule->show_date == 1) @else @endif @if($template != 2) @endif @endif @if($duplicate_row == 0) @endif @if($show_surcharge) @endif @php $duplicate_row=1; @endphp @endforeach @endforeach @if($template != 2) @endif @if($show_surcharge) {{-- @if($template != 2) --}} {{-- --}} {{-- @endif --}} @endif
Payment Amount {{$transaction->systemSettingCurrency()}} Due Date{{__('lang.type')}}Paid Paid Date @if($template != 2)Reference @else Receipt No @endif Outstanding SurchargePaid Surcharge
{{ $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 ??'' }} @if($actual_received_item->actual_received->status == 'Void') {{'Voided'}} @endif {{ $transaction->convert_money_format($outstanding) }} @if($surcharge_items_amount > 0) {{ $transaction->convert_money_format($surcharge_items_amount) }} @else - @endif @if($is_waived) WAIVED OFF @else {{ $transaction->convert_money_format($actual_received_item->schedule_surcharge->payment ?? 0) }} @endif
Total {{ $transaction->convert_money_format($total_sale_amount) }} {{ $transaction->convert_money_format($total_received) }} {{ $transaction->convert_money_format($total_outstanding) }}{{$transaction->convert_money_format($total_surcharge)}} {{ $transaction->convert_money_format($total_surcharge_paid) }}{{ $transaction->convert_money_format($total_surcharge_paid) }}
{{-- Schedule Grid End --}} @if($statement == 'Till Month') @if($show_grand_summary_till_month)
Total Sale {{$transaction->systemSettingCurrency()}} {{ $transaction->convert_money_format($data['totalSaleAmount']) }}
Total Received Amount Till Month {{ $transaction->convert_money_format($total_received) }}
Total Balance Amount Till month {{ $transaction->convert_money_format($total_outstanding) }}
Total Balance Amount {{$transaction->systemSettingCurrency()}} {{ $transaction->convert_money_format($data['totalSaleAmount'] - $data['totalReceived']) }}
@endif @else @if($show_statement_summary) {{-- STATEMENT SUMMARY Start --}} @include('admin.schedule-manage.statement-print-new.partial.statement_summary') {{-- STATEMENT SUMMARY End --}} @endif @if($show_surcharge && $show_surcharge_footer_on_statement) @include('admin.schedule-manage.statement-print-new.partial.surcharge_footer') @endif @endif