@extends('layouts.side_bar') @section('content') {{--@if ($note->note !=null)--}} {{-- --}} {{--@endif--}}
« PREVIOUS--}} data-target=".bd-example-modal-lg-changeStatus" onclick="pre()">« PREVIOUS NEXT »--}} data-target=".bd-example-modal-lg-changeStatus " onclick="nex()">NEXT » {{-- Action Bar--}}
{{--next--}} {{-- previous--}} {{--card head--}}
Current Status : {{$batch->status}}
{{--
--}} {{--
--}} {{-- --}}{{--
--}} {{-- --}}{{-- Remarks :
--}} {{-- --}}{{-- Next Call DAte :
--}} {{-- --}}{{-- @if($batch->status=='ptp')--}} {{-- --}}{{-- PTP Amount :
--}} {{-- --}}{{-- PTP Date :
--}} {{-- --}}{{-- @endif--}} {{-- --}}{{--
--}} {{-- --}}{{--
--}} {{-- --}}{{-- {{ $batch->remark}}
--}} {{-- --}}{{-- {{ $batch->nextCall}}
--}} {{-- --}}{{-- @if($batch->status=='ptp')--}} {{-- --}}{{-- {{ $batch->ptpAmount}}
--}} {{-- --}}{{-- {{ $batch->ptpDate}}
--}} {{-- --}}{{-- @endif--}} {{-- --}}{{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @if($batch->status=='ptp')--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @endif--}} {{--
--}} {{-- Remarks :--}} {{-- --}} {{-- {{ $batch->remark}}--}} {{--
--}} {{-- Next Call DAte :--}} {{-- --}} {{-- {{ $batch->nextCall}}--}} {{--
--}} {{-- PTP Amount :--}} {{-- --}} {{-- {{ $batch->ptpAmount}}--}} {{--
--}} {{-- PTP Date :--}} {{-- --}} {{-- {{ $batch->ptpDate}}--}} {{--
--}} {{--
--}} {{--
--}} {{-- related acc--}} {{-- @if($relatedAccounts !='[]')--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- @endif--}} {{-- Related--}} @if($note !=null)
Note
{{$note->note}}
This note is saved By : {{ $note->by }}
@else
@endif

{{-- note edit collaps--}} @if($note !=null)
Edit And Update Note
@csrf
@endif {{--add note--}}
Edit And Update Note
@csrf
{{--add Action history--}} {{--
--}} {{--
--}} {{--
Add new Action
--}} {{--
--}} {{--
--}} {{-- @csrf--}} {{-- Current Account Status : {{$batch->status}}
--}} {{--
--}} {{-- New Status : --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- Remark : --}} {{--
--}} {{--
--}} {{-- Next call : --}} {{--
--}} {{--
--}} {{-- --}}{{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--end add action--}} {{-- main content--}}
Debtor's Personal Information
{{--
--}} {{--
--}} {{-- Batch :
--}} {{-- Account No :
--}} {{-- New Nric :
--}} {{-- Old Nric :
--}} {{-- Debtor Name :
--}} {{--
--}} {{-- regAddress :
--}} {{-- employerAddress :
--}} {{-- loanAmount :
--}} {{-- loanDate :
--}} {{-- chargeOfDate :
--}} {{-- adminCharge :
--}} {{-- Occupation :
--}} {{--
--}} {{--
--}} {{-- {{$batch->batch_name}}
--}} {{-- {{$batch->AccountNo}}
--}} {{-- @if($relatedAccounts !='[]')--}} {{-- {{$batch->NewNric}}
--}} {{-- @else--}} {{-- {{$batch->NewNric}}
--}} {{-- @endif--}} {{-- {{$batch->OldNric}}
--}} {{-- {{$batch->DebtorName }}
--}} {{--
--}} {{-- {{$batch->regAddress}}
--}} {{-- {{$batch->employerAddress}}
--}} {{-- {{$batch->loanAmount}}
--}} {{-- {{$batch->loanDate}}
--}} {{-- {{$batch->chargeOfDate}}
--}} {{-- {{$batch->adminCharge}}
--}} {{-- {{$batch->Occupation}}
--}} {{--
--}} {{--
--}} @if($mappedBatch->NewNric !=null) @endif @if($mappedBatch->OldNric !=null) @endif @if($Age !=null or $Age !="") @endif @if($kwsp !=null or $kwsp_guarantor !=null) @endif @if($mappedBatch->DebtorName !=null) @endif @if($mappedBatch->regAddress !=null) @endif @if($mappedBatch->employerAddress !=null) @endif {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @if($mappedBatch->Occupation !=null) @endif
Batch : {{$batch->batch_name}}
Account No : {{$batch->AccountNo}}
New Nric : @if($relatedAccounts !='[]') {{-- {{$batch->NewNric}}mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmnn--}} @else {{$batch->NewNric}} {{-- @money($batch->NewNric)--}} @endif
Old Nric : {{$batch->OldNric}}
Age : {{$Age}}
kwsp : {{$kwsp.','.$kwsp_guarantor}}
Debtor Name : {{$batch->DebtorName }}
   
Registered Address : {{$batch->regAddress}}
employerAddress : {{$batch->employerAddress }}
--}} {{-- loanAmount :--}} {{-- --}} {{-- {{$batch->loanAmount }}--}} {{--
--}} {{-- loanDate :--}} {{-- --}} {{-- {{$batch->loanDate }}--}} {{--
--}} {{-- chargeOfDate--}} {{-- --}} {{-- {{$batch->chargeOfDate }}--}} {{--
--}} {{-- adminCharge :--}} {{-- --}} {{-- {{$batch->adminCharge }}--}} {{--
Occupation : {{$batch->Occupation}}


{{--first jumboton--}}
Debt Information @if($relatedAccounts !='[]') @endif
{{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- Total due Amt :
--}} {{-- Balance :
--}} {{-- Last Pay Amt :
--}} {{-- Last Pay Date :
--}} {{--
--}} {{--
--}} {{-- {{$totalDue}}
--}} {{-- {{$balance}}
--}} {{-- {{$batch->LastPaidAmount}}
--}} {{-- {{$batch->LastPaidDate}}
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- Installment Amt :
--}} {{-- Due Date :
--}} {{-- Discount % :
--}} {{-- Amt to Collect :
--}} {{-- Legal Charge :
--}} {{--
--}} {{-- Admin Charge :
--}} {{-- Arrears Month :
--}} {{-- Delq Month :
--}} {{-- Mature Date :
--}} {{--
--}} {{--
--}} {{-- {{$batch->totalDue}}
--}} {{-- {{$batch->DueDate}}
--}} {{-- {{$batch->Discount}}
--}} {{-- {{$batch->loanAmount}}
--}} {{-- {{$batch->LegalCharge }}
--}} {{--
--}} {{-- {{$batch->adminCharge}}
--}} {{-- {{$batch->ArrearsMonth}}
--}} {{-- {{$batch->loanAmount}}
--}} {{-- {{$batch->loanDate}}
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} @if($mappedBatch->AccountType !=null) @endif @if($mappedBatch->accountDescription !=null) @endif @if($mappedBatch->loanAmount !=null) @endif @if($mappedBatch->loanDate !=null) @endif @if($mappedBatch->chargeOfDate !=null) @endif {{-- --}} {{-- --}} {{-- --}} @if($mappedBatch->ArrearsMonth !=null) @endif @if($mappedBatch->Discount !=null) @endif @if($mappedBatch->MinPayment !=null) @endif @if($mappedBatch->LegalCharge !=null) @endif @if($mappedBatch->adminCharge !=null) @endif @if($mappedBatch->ArrearsMonth !=null) @endif {{--new--}} @if($mappedBatch->Interest !=null) @endif @if($mappedBatch->Discount !=null) @endif @if($mappedBatch->creditLimit !=null) @endif {{--new--}} @if($mappedBatch->DueDate !=null) @endif @if($mappedBatch->LastPaidDate !=null) @endif @if($mappedBatch->LastPaidAmount !=null) @endif
Account Type : {{-- {{$totalDue}}--}} {{$batch->AccountType}}
Account Description : {{$batch->accountDescription}}
Loan Amount : @if(fmod($batch->loanAmount, 1) !== 0.00) @money($batch->loanAmount) @else @money2($batch->loanAmount) @endif {{-- @money($batch->loanAmount)--}}
Loan Date : {{$batch->loanDate}}
Charge-off Date : {{$batch->chargeOfDate}}
   
--}} {{-- Installment Amt :--}} {{-- --}} {{-- {{$batch->totalDue }}--}} {{--
Arrears Month : {{$batch->ArrearsMonth}}
Total Due : @if(fmod($batch->totalDue, 1) !== 0.00) @money($batch->totalDue) @else @money2($batch->totalDue) @endif {{-- @money($batch->totalDue)--}}
Min Repayment : @if(fmod($batch->MinPayment, 1) !== 0.00) @money($batch->MinPayment) @else @money2($batch->MinPayment) @endif {{-- @money($batch->MinPayment)--}}
Legal Charge : @if(fmod($batch->LegalCharge, 1) !== 0.00) @money($batch->LegalCharge) @else @money2($batch->LegalCharge) @endif {{-- @money($batch->LegalCharge)--}}
Admin Charge : @if(fmod($batch->adminCharge, 1) !== 0.00) @money($batch->adminCharge) @else @money2($batch->adminCharge) @endif {{-- @money($batch->adminCharge)--}}
Full Settlement : @if(fmod($batch->TotalSettlement, 1) !== 0.00) @money($batch->TotalSettlement) @else @money2($batch->TotalSettlement) @endif {{-- @money($batch->TotalSettlement)--}}
   
Interest : {{$batch->Interest}}
Discount % : {{$batch->Discount}}
Credit Limit : {{$batch->creditLimit}}
   
Due Date : {{$batch->DueDate}}
Last Paid Date : {{$batch->LastPaidDate}}
Last Paid Amount : @if(fmod($batch->LastPaidAmount, 1) !== 0.00) @money($batch->LastPaidAmount) @else @money2($batch->LastPaidAmount) @endif {{-- @money($batch->LastPaidAmount)--}}
{{--additional info--}} @if(isset($batchInfo->Additional_Credit_info_1) or isset($batchInfo->Additional_Credit_info_2) or isset($batchInfo->Additional_Credit_info_3)or isset($batchInfo->Additional_Credit_info_4)or isset($batchInfo->Additional_Credit_info_5))

Additional Information
@if(isset($batchInfo->Additional_Credit_info_1)) @endif @if(isset($batchInfo->Additional_Credit_info_2)) @endif {{-- @if(isset($batchInfo->Additional_Credit_info_2))--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @endif--}} @if(isset($batchInfo->Additional_Credit_info_3)) @endif @if(isset($batchInfo->Additional_Credit_info_4)) @endif @if(isset($batchInfo->Additional_Credit_info_5)) @endif @if(isset($batchInfo->Additional_Credit_info_6)) @endif @if(isset($batchInfo->Additional_Credit_info_7)) @endif @if(isset($batchInfo->Additional_Credit_info_8)) @endif @if(isset($batchInfo->Additional_Credit_info_9)) @endif @if(isset($batchInfo->Additional_Credit_info_10)) @endif
{{$batchInfo->Additional_Credit_info_1}} : {{$batch->Additional_Credit_info_1}}
{{$batchInfo->Additional_Credit_info_2}} : {{$batch->Additional_Credit_info_2}}
--}} {{-- {{$batchInfo->Additional_Credit_info_2}} :--}} {{-- --}} {{-- {{$batch->Additional_Credit_info_2}}--}} {{--
{{$batchInfo->Additional_Credit_info_3}} : {{$batch->Additional_Credit_info_3}}
{{$batchInfo->Additional_Credit_info_4}} : {{$batch->Additional_Credit_info_4}}
{{$batchInfo->Additional_Credit_info_5}} : {{$batch->Additional_Credit_info_5}}
{{$batchInfo->Additional_Credit_info_6}} : {{$batch->Additional_Credit_info_6}}
{{$batchInfo->Additional_Credit_info_7}} : {{$batch->Additional_Credit_info_7}}
{{$batchInfo->Additional_Credit_info_8}} : {{$batch->Additional_Credit_info_8}}
{{$batchInfo->Additional_Credit_info_9}} : {{$batch->Additional_Credit_info_9}}
{{$batchInfo->Additional_Credit_info_10}} : {{$batch->Additional_Credit_info_10}}
@endif {{-- collector log --}}
Collector Log
{{--hidden--}}

{{-- --}} @foreach($collectorlog as $l) {{-- @if($l->status=='active')--}} {{-- --}} {{-- @else--}} {{-- --}} {{-- @endif--}} @endforeach
Collector Action By From ToStatus
{{$l->collector}} {{$l->by}} {{$l->from}} {{$l->to}} {{$l->status}} {{$l->status}}
{{-- end--}}
{{--split scrin--}}
All Action History
{{-- --}} @foreach($log as $l) {{-- --}} @endforeach
Date : Time Action By Action To Tel Status PTP Amount PTP DateNext CallView Remark
{{$l->created_at}} {{$l->by}} {{$l->to}} {{$l->tel}} {{$l->status}} {{-- @money($l->ptpAmount)--}} @if(fmod($batch->ptpAmount, 1) !== 0.00) @money($batch->ptpAmount) @else @money2($batch->ptpAmount) @endif {{$l->ptpDate}}{{$l->nextCall}} @if($l->remark !=null) {{-- --}} @else NULL @endif

{{--add Action history--}}
Add new Action
@csrf Current Account Status : {{$batch->status}}
New Status :
Remark :
Next call :
{{-- --}}

{{-- --}} {{-- --}} {{-- --}}
{{--end add action--}}
{{--Contact Information--}}
Contact Information
{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @if($batch->contactability =='Yes')--}} {{-- --}} {{-- @elseif($batch->contactability =='No')--}} {{-- --}} {{-- @elseif($batch->contactability =='Not sure')--}} {{-- --}} {{-- @else--}} {{-- --}} {{-- @endif--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}{{-- --}} {{-- @if($batch->refContactability1 =='Yes')--}} {{-- --}} {{-- @elseif($batch->refContactability1 =='No')--}} {{-- --}} {{-- @elseif($batch->refContactability1 =='Not sure')--}} {{-- --}} {{-- @else--}} {{-- --}} {{-- @endif--}} {{-- --}} {{-- --}} {{-- --}} @for($i=1; $i<=$refcount; $i++) @if($i==1) @else @endif {{-- --}} {{-- --}} @if($reference['contactability'.$i] =='Yes') @elseif($reference['contactability'.$i] =='No') @elseif($reference['contactability'.$i] =='Not Sure') @else @endif @endfor
Tel No Name Type Contactability Source Action
{{ \App\Models\contact::where('nric',$batch->NewNric)->value('telNumber')}}--}} {{-- --}} {{-- --}}{{-- --}} {{-- --}}{{-- {{$batch->RefName }}--}} {{-- Debtor{{$batch->contactability}}{{$batch->contactability}}{{$batch->contactability}}Not Done{{ \App\Models\contact::where('nric',$batch->NewNric)->value('Source')}}--}} {{-- --}} {{-- --}} {{-- Sms--}} {{--
{{ \App\Models\contact::where('nric',$batch->RefNric)->value('telNumber')}}--}} {{-- --}} {{-- --}}{{-- --}} {{-- --}}{{-- {{$batch->RefName }}--}} {{-- {{$batch->RefType}}{{$batch->refContactability1}}{{$batch->refContactability1}}{{$batch->refContactability1}}{{$batch->refContactability1}}Not Done{{ \App\Models\contact::where('nric',$batch->RefNric)->value('Source')}}--}} {{-- --}} {{-- --}} {{-- Sms--}} {{--
{{$reference['ReftelNumber'.$i]}}{{$batch->{'RefName'.$i} }} {{$reference['RefType'.$i]}}{{$batch->{'refContactability'.$i} }}{{$reference['contactability'.$i] }}{{$reference['contactability'.$i]}}{{$reference['contactability'.$i]}}Not Done{{$reference['RefSource'.$i]}} Sms
{{-- call modal--}} {{-- end eall modal --}} {{-- payment--}}
{{--
--}} {{--
Payment Module--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--hidden--}}

Add New payment
@csrf

{{-- hidden--}} {{--payment table--}}
Payment Reg By Collector
{{-- --}} @foreach($paymentLog as $pl) {{-- --}} @endforeach
Paid Amount Paid Date Paid ByPaid By [Nric]Payment Type Action By Receipt
{{-- @money($pl->paidAmount)--}} @if(fmod($batch->paidAmount, 1) !== 0.00) RM @money($batch->paidAmount) @else RM @money2($batch->paidAmount) @endif {{$pl->paidDate}} {{$pl->paidByName}}{{$pl->paidByNric}}{{$pl->paymentType}} {{$pl->collector}} @if($pl->receipt!=null) @else Null @endif
{{----}}
{{--confirm payment--}} @if(!empty($confirmPayment))
Confirm Payment
{{-- --}} @foreach($confirmPayment as $pl) {{-- --}} @endforeach
Paid Amount Paid Date Paid ByPaid By [Nric]Payment Type Action By Collector
{{-- RM @money($pl->paidAmount)--}} @if(fmod($pl->paidAmount, 1) !== 0.00) RM @money($pl->paidAmount) @else RM @money2($pl->paidAmount) @endif {{$pl->paidDate}} {{$pl->paidBy}}{{$pl->paidByNric}}{{$pl->paymentType}} {{$pl->dataEnteredBy}} @if($pl->collector=='NO_Collector') {{$pl->collector}} @else {{$pl->collector}} @endif
{{----}}
@endif {{--end confirmpayment--}}
{{-- --}} {{-- --}} @endsection