@extends('layouts.side_bar') @section('content') @if(isset($other_duplicate)) {{--

no more duplicate data for {{$current_batch}}

--}}
No more duplicate data for {{$current_batch}}

@if(!$other_duplicate->isEmpty()) @foreach($other_duplicate as $dup) @endforeach @endif
Batch Name Action
{{$dup->batch_name}} Manage Single Duplicate Manage Bulk Duplicate
@if($other_duplicate->isEmpty())
No more duplicate data in duplicate_data table
@endif
@else {{--if data available--}}
total Duplicate data for Batch {{$new->batch_name}} : {{ \App\Models\duplicates::where('batch_name',$new->batch_name)->count() }}
{{$b=\App\Models\duplicates::select('batch_name')->groupBy('batch_name')->get()}}

old data

@if($old->batch_name !=null) @endif {{--$profile['profile_name'] =$batch_name;--}} @if($old->DebtorName !=null) @endif {{--$profile['DebtorName'] = $DebtorName;--}} @if($old->NewNric !=null) @endif {{--$profile['NewNric'] = $NewNric;--}} @if($old->OldNric !=null) @endif @if($old->Occupation !=null) @endif {{--$profile['OldNric'] = $OldNric;--}} @if($old->regAddress !=null) @endif {{--$profile['regAddress'] = $regAddress;--}} @if($old->employerAddress !=null) @endif {{--$profile['employerAddress'] = $employerAddress;--}} {{--$profile['adminCharge'] = $adminCharge;--}} @if($old->AccountNo !=null) @endif {{--$profile['AccountNo'] = $AccountNo;--}} @if($old->CardNo !=null) @endif @if($old->VehicleNo !=null) @endif {{--$profile['AccountType'] = $AccountType;--}} @if($old->ClientRefNo !=null) @endif {{--$profile['CardNo'] = $CardNo;--}} @if($old->AccountType !=null) @endif @if($old->accountDescription !=null) @endif @if($old->loanAmount !=null) @endif {{--$profile['loanAmount'] = $loanAmount;--}} @if($old->loanDate !=null) @endif {{--$profile['loanDate'] = $loanDate;--}} @if($old->chargeOfDate !=null) @endif {{--$profile['chargeOfDate'] = $chargeOfDate;--}} {{--$profile['ClientRefNo'] = $ClientRefNo;--}} @if($old->DueDate !=null) @endif {{--$profile['DueDate'] = $DueDate;--}} @if($old->creditLimit !=null) @endif {{--$profile['creditLimit'] = $creditLimit;--}} @if($old->MinPayment !=null) @endif {{--$profile['MinPayment'] = $MinPayment;--}} @if($old->totalDue !=null) @endif @if($old->ArrearsMonth !=null) @endif {{--$profile['totalDue'] = $totalDue;--}} @if($old->Interest !=null) @endif {{--$profile['Interest'] = $Interest;--}} @if($old->Discount !=null) @endif @if($old->adminCharge !=null) @endif {{--$profile['Discount'] = $Discount;--}} @if($old->TotalSettlement !=null) @endif {{--$profile['TotalSettlement'] = $TotalSettlement;--}} @if($old->LegalCharge !=null) @endif {{--$profile['LegalCharge'] = $LegalCharge;--}} @if($old->LastPaidDate !=null) @endif {{--$profile['LastPaidDate'] = $LastPaidDate;--}} @if($old->LastPaidAmount !=null) @endif {{--$profile['LastPaidAmount'] = $LastPaidAmount;--}} @if($old->Additional_Credit_info_1 !=null) @if( (\App\Models\batch::where('batch_name',$old->batch_name)->value('Additional_Credit_info_1')) ==null) @else @endif @endif @if($old->Additional_Credit_info_2 !=null) @if( (\App\Models\batch::where('batch_name',$old->batch_name)->value('Additional_Credit_info_2')) ==null) @else @endif @endif @if($old->Additional_Credit_info_3 !=null) @if( (\App\Models\batch::where('batch_name',$old->batch_name)->value('Additional_Credit_info_3')) ==null) @else @endif @endif @if($old->Additional_Credit_info_4 !=null) @if( (\App\Models\batch::where('batch_name',$old->batch_name)->value('Additional_Credit_info_4')) ==null) @else @endif @endif @if($old->Additional_Credit_info_5 !=null) @if( (\App\Models\batch::where('batch_name',$old->batch_name)->value('Additional_Credit_info_5')) ==null) @else @endif @endif {{-- ///////////////////////////////////////--}} @if($old->RefName !=null) @endif {{--$profile['RefName'] = $RefName;--}} @if($old->RefNric !=null) @endif @if($old->RefType !=null) @endif @if($old->RefName2 !=null) @endif {{--$profile['accountDescription'] = $accountDescription;--}} @if($old->RefNric2 !=null) @endif @if($old->RefType2 !=null) @endif @if($old->RefName3 !=null) @endif @if($old->RefNric3 !=null) @endif @if($old->RefType3 !=null) @endif @if($old->RefName4 !=null) @endif @if($old->RefNric4 !=null) @endif @if($old->RefType4 !=null) @endif @if($old->RefName5 !=null) @endif @if($old->RefNric5 !=null) @endif @if($old->RefType5 !=null) @endif @if($old->batch_name !=null) @endif {{--$profile['profile_name'] =$batch_name;--}} @if($old->DebtorName !=null) @endif {{--$profile['DebtorName'] = $DebtorName;--}} @if($old->NewNric !=null) @endif @if($old->Occupation !=null) @endif {{--$profile['NewNric'] = $NewNric;--}} @if($old->OldNric !=null) @endif {{--$profile['OldNric'] = $OldNric;--}} @if($old->regAddress !=null) @endif @if($old->employerAddress !=null) @endif {{--////////////////////////////////////////////--}} {{--$profile['employerAddress'] = $employerAddress;--}} {{--$profile['chargeOfDate'] = $chargeOfDate;--}} {{--$profile['adminCharge'] = $adminCharge;--}} @if($old->AccountNo !=null) @endif {{--$profile['AccountNo'] = $AccountNo;--}} @if($old->CardNo !=null) @endif @if($old->VehicleNo!=null) @endif {{--$profile['CardNo'] = $CardNo;--}} @if($old->ClientRefNo !=null) @endif {{-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--}} @if($old->AccountType !=null) @endif @if($old->accountDescription !=null) @endif @if($old->loanAmount !=null) @endif {{--$profile['loanAmount'] = $loanAmount;--}} @if($old->loanDate !=null) @endif {{--$profile['loanDate'] = $loanDate;--}} @if($old->chargeOfDate !=null) @endif @if($old->DueDate !=null) @endif {{--$profile['DueDate'] = $DueDate;--}} @if($old->creditLimit !=null) @endif {{--$profile['creditLimit'] = $creditLimit;--}} @if($old->MinPayment !=null) @endif {{--$profile['MinPayment'] = $MinPayment;--}} @if($old->totalDue !=null) @endif @if($old->ArrearsMonth !=null) @endif {{--$profile['totalDue'] = $totalDue;--}} @if($old->Interest !=null) @endif {{--$profile['Interest'] = $Interest;--}} @if($old->Discount !=null) @endif @if($old->adminCharge !=null) @endif {{--$profile['Discount'] = $Discount;--}} @if($old->TotalSettlement !=null) @endif {{--$profile['TotalSettlement'] = $TotalSettlement;--}} @if($old->LegalCharge !=null) @endif {{--$profile['LegalCharge'] = $LegalCharge;--}} @if($old->LastPaidDate !=null) @endif {{--$profile['LastPaidDate'] = $LastPaidDate;--}} @if($old->LastPaidAmount !=null) @endif {{--$profile['LastPaidAmount'] = $LastPaidAmount;--}} @if($old->Additional_Credit_info_1 !=null) @endif @if($old->Additional_Credit_info_2 !=null) @endif @if($old->Additional_Credit_info_3 !=null) @endif @if($old->Additional_Credit_info_4 !=null) @endif @if($old->Additional_Credit_info_5 !=null) @endif {{-- //////////////////--}} {{--$profile['accountDescription'] = $accountDescription;--}} @if($old->RefName !=null) @endif @if($old->RefNric !=null) @endif @if($old->RefType !=null) @endif @if($old->RefName2 !=null) @endif {{--$profile['RefType'] = $RefType;--}} @if($old->RefNric2 !=null) @endif @if($old->RefType2 !=null) @endif {{--$profile['RefType2'] = $RefType2;--}} @if($old->RefName3 !=null) @endif @if($old->RefNric3 !=null) @endif @if($old->RefType3 !=null) @endif @if($old->RefName4 !=null) @endif @if($old->RefNric4 !=null) @endif @if($old->RefType4 !=null) @endif @if($old->RefName5 !=null) @endif @if($old->RefNric5 !=null) @endif @if($old->RefType5 !=null) @endif
batch_nameDebtorNameNewNricOldNricOccupationregAddressemployerAddressAccountNoCardNoVehicleNo ClientRefNoAccountTypeaccountDescriptionloanAmountloanDatechargeOfDateDueDatecreditLimitMinPaymenttotalDueArrearsMonthInterestDiscountadminChargeTotalSettlementLegalChargeLastPaidDateLastPaidAmountAdditional Credit info 1{{ \App\Models\batch::where('batch_name',$old->batch_name)->value('Additional_Credit_info_1')}}Additional Credit info 2{{ \App\Models\batch::where('batch_name',$old->batch_name)->value('Additional_Credit_info_2')}}Additional Credit info 3{{ \App\Models\batch::where('batch_name',$old->batch_name)->value('Additional_Credit_info_3')}}Additional Credit info 4{{ \App\Models\batch::where('batch_name',$old->batch_name)->value('Additional_Credit_info_4')}}Additional Credit info 5{{ \App\Models\batch::where('batch_name',$old->batch_name)->value('Additional_Credit_info_5')}}RefNameRefNricRefTypeRefName2RefNric2RefType2RefName3RefNric3RefType3RefName4RefNric4RefType4RefName5RefNric5RefType5
{{$old->batch_name}}{{$old->DebtorName}}{{$old->NewNric}}{{$old->Occupation}}{{$old->OldNric}}{{$old->regAddress}}{{$old->employerAddress}}{{$old->AccountNo}}{{$old->CardNo}}{{$old->VehicleNo}}{{$old->ClientRefNo}}{{$old->AccountType}}{{$old->accountDescription}}{{$old->loanAmount}}{{$old->loanDate}}{{$old->chargeOfDate}}{{$old->DueDate}}{{$old->creditLimit}}{{$old->MinPayment}}{{$old->totalDue}}{{$old->ArrearsMonth}}{{$old->Interest}}{{$old->Discount}}{{$old->adminCharge}}{{$old->TotalSettlement}}{{$old->LegalCharge}}{{$old->LastPaidDate}}{{$old->LastPaidAmount}}{{$old->Additional_Credit_info_1}}{{$old->Additional_Credit_info_2}}{{$old->Additional_Credit_info_3}}{{$old->Additional_Credit_info_4}}{{$old->Additional_Credit_info_5}}{{$old->RefName}}{{$old->RefNric}}{{$old->RefType}}{{$old->RefName2}}{{$old->RefNric2}}{{$old->RefType2}}{{$old->RefName3}}{{$old->RefNric3}}{{$old->RefType3}}{{$old->RefName4}}{{$old->RefNric4}}{{$old->RefType4}}{{$old->RefName5}}{{$old->RefNric5}}{{$old->RefType5}}
{{----}}

new data

@if($new->batch_name !=null) @endif {{--$profile['profile_name'] =$batch_name;--}} @if($new->DebtorName !=null) @endif {{--$profile['DebtorName'] = $DebtorName;--}} @if($new->NewNric !=null) @endif {{--$profile['NewNric'] = $NewNric;--}} @if($new->OldNric !=null) @endif @if($new->Occupation !=null) @endif {{--$profile['OldNric'] = $OldNric;--}} @if($new->regAddress !=null) @endif {{--$profile['regAddress'] = $regAddress;--}} @if($new->employerAddress !=null) @endif {{--$profile['employerAddress'] = $employerAddress;--}} {{--$profile['adminCharge'] = $adminCharge;--}} @if($new->AccountNo !=null) @endif {{--$profile['AccountNo'] = $AccountNo;--}} @if($new->CardNo !=null) @endif @if($new->VehicleNo !=null) @endif {{--$profile['AccountType'] = $AccountType;--}} @if($new->ClientRefNo !=null) @endif {{--$profile['CardNo'] = $CardNo;--}} @if($new->AccountType !=null) @endif @if($new->accountDescription !=null) @endif @if($new->loanAmount !=null) @endif {{--$profile['loanAmount'] = $loanAmount;--}} @if($new->loanDate !=null) @endif {{--$profile['loanDate'] = $loanDate;--}} @if($new->chargeOfDate !=null) @endif {{--$profile['chargeOfDate'] = $chargeOfDate;--}} {{--$profile['ClientRefNo'] = $ClientRefNo;--}} @if($new->DueDate !=null) @endif {{--$profile['DueDate'] = $DueDate;--}} @if($new->creditLimit !=null) @endif {{--$profile['creditLimit'] = $creditLimit;--}} @if($new->MinPayment !=null) @endif {{--$profile['MinPayment'] = $MinPayment;--}} @if($new->totalDue !=null) @endif @if($new->ArrearsMonth !=null) @endif {{--$profile['totalDue'] = $totalDue;--}} @if($new->Interest !=null) @endif {{--$profile['Interest'] = $Interest;--}} @if($new->Discount !=null) @endif @if($new->adminCharge !=null) @endif {{--$profile['Discount'] = $Discount;--}} @if($new->TotalSettlement !=null) @endif {{--$profile['TotalSettlement'] = $TotalSettlement;--}} @if($new->LegalCharge !=null) @endif {{--$profile['LegalCharge'] = $LegalCharge;--}} @if($new->LastPaidDate !=null) @endif {{--$profile['LastPaidDate'] = $LastPaidDate;--}} @if($new->LastPaidAmount !=null) @endif {{--$profile['LastPaidAmount'] = $LastPaidAmount;--}} @if($new->Additional_Credit_info_1 !=null) @if( (\App\Models\batch::where('batch_name',$new->batch_name)->value('Additional_Credit_info_1')) ==null) @else @endif @endif @if($new->Additional_Credit_info_2 !=null) @if( (\App\Models\batch::where('batch_name',$new->batch_name)->value('Additional_Credit_info_2')) ==null) @else @endif @endif @if($new->Additional_Credit_info_3 !=null) @if( (\App\Models\batch::where('batch_name',$new->batch_name)->value('Additional_Credit_info_3')) ==null) @else @endif @endif @if($new->Additional_Credit_info_4 !=null) @if( (\App\Models\batch::where('batch_name',$new->batch_name)->value('Additional_Credit_info_4')) ==null) @else @endif @endif @if($new->Additional_Credit_info_5 !=null) @if( (\App\Models\batch::where('batch_name',$new->batch_name)->value('Additional_Credit_info_5')) ==null) @else @endif @endif {{-- ///////////////////////////////////////--}} @if($new->RefName !=null) @endif {{--$profile['RefName'] = $RefName;--}} @if($new->RefNric !=null) @endif @if($new->RefType !=null) @endif @if($new->RefName2 !=null) @endif {{--$profile['accountDescription'] = $accountDescription;--}} @if($new->RefNric2 !=null) @endif @if($new->RefType2 !=null) @endif @if($new->RefName3 !=null) @endif @if($new->RefNric3 !=null) @endif @if($new->RefType3 !=null) @endif @if($new->RefName4 !=null) @endif @if($new->RefNric4 !=null) @endif @if($new->RefType4 !=null) @endif @if($new->RefName5 !=null) @endif @if($new->RefNric5 !=null) @endif @if($new->RefType5 !=null) @endif @if($new->batch_name !=null) @endif {{--$profile['profile_name'] =$batch_name;--}} @if($new->DebtorName !=null) @endif {{--$profile['DebtorName'] = $DebtorName;--}} @if($new->NewNric !=null) @endif @if($new->Occupation !=null) @endif {{--$profile['NewNric'] = $NewNric;--}} @if($new->OldNric !=null) @endif {{--$profile['OldNric'] = $OldNric;--}} @if($new->regAddress !=null) @endif @if($new->employerAddress !=null) @endif {{--////////////////////////////////////////////--}} {{--$profile['employerAddress'] = $employerAddress;--}} {{--$profile['chargeOfDate'] = $chargeOfDate;--}} {{--$profile['adminCharge'] = $adminCharge;--}} @if($new->AccountNo !=null) @endif {{--$profile['AccountNo'] = $AccountNo;--}} @if($new->CardNo !=null) @endif @if($new->VehicleNo!=null) @endif {{--$profile['CardNo'] = $CardNo;--}} @if($new->ClientRefNo !=null) @endif {{-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////--}} @if($new->AccountType !=null) @endif @if($new->accountDescription !=null) @endif @if($new->loanAmount !=null) @endif {{--$profile['loanAmount'] = $loanAmount;--}} @if($new->loanDate !=null) @endif {{--$profile['loanDate'] = $loanDate;--}} @if($new->chargeOfDate !=null) @endif @if($new->DueDate !=null) @endif {{--$profile['DueDate'] = $DueDate;--}} @if($new->creditLimit !=null) @endif {{--$profile['creditLimit'] = $creditLimit;--}} @if($new->MinPayment !=null) @endif {{--$profile['MinPayment'] = $MinPayment;--}} @if($new->totalDue !=null) @endif @if($new->ArrearsMonth !=null) @endif {{--$profile['totalDue'] = $totalDue;--}} @if($new->Interest !=null) @endif {{--$profile['Interest'] = $Interest;--}} @if($new->Discount !=null) @endif @if($new->adminCharge !=null) @endif {{--$profile['Discount'] = $Discount;--}} @if($new->TotalSettlement !=null) @endif {{--$profile['TotalSettlement'] = $TotalSettlement;--}} @if($new->LegalCharge !=null) @endif {{--$profile['LegalCharge'] = $LegalCharge;--}} @if($new->LastPaidDate !=null) @endif {{--$profile['LastPaidDate'] = $LastPaidDate;--}} @if($new->LastPaidAmount !=null) @endif {{--$profile['LastPaidAmount'] = $LastPaidAmount;--}} @if($new->Additional_Credit_info_1 !=null) @endif @if($new->Additional_Credit_info_2 !=null) @endif @if($new->Additional_Credit_info_3 !=null) @endif @if($new->Additional_Credit_info_4 !=null) @endif @if($new->Additional_Credit_info_5 !=null) @endif {{-- //////////////////--}} {{--$profile['accountDescription'] = $accountDescription;--}} @if($new->RefName !=null) @endif @if($new->RefNric !=null) @endif @if($new->RefType !=null) @endif @if($new->RefName2 !=null) @endif {{--$profile['RefType'] = $RefType;--}} @if($new->RefNric2 !=null) @endif @if($new->RefType2 !=null) @endif {{--$profile['RefType2'] = $RefType2;--}} @if($new->RefName3 !=null) @endif @if($new->RefNric3 !=null) @endif @if($new->RefType3 !=null) @endif @if($new->RefName4 !=null) @endif @if($new->RefNric4 !=null) @endif @if($new->RefType4 !=null) @endif @if($new->RefName5 !=null) @endif @if($new->RefNric5 !=null) @endif @if($new->RefType5 !=null) @endif {{-- new old old--}}
batch_nameDebtorNameNewNricOldNricOccupationregAddressemployerAddressAccountNoCardNoVehicleNo ClientRefNoAccountTypeaccountDescriptionloanAmountloanDatechargeOfDateDueDatecreditLimitMinPaymenttotalDueArrearsMonthInterestDiscountadminChargeTotalSettlementLegalChargeLastPaidDateLastPaidAmountAdditional Credit info 1{{ \App\Models\batch::where('batch_name',$new->batch_name)->value('Additional_Credit_info_1')}}Additional Credit info 2{{ \App\Models\batch::where('batch_name',$new->batch_name)->value('Additional_Credit_info_2')}}Additional Credit info 3{{ \App\Models\batch::where('batch_name',$new->batch_name)->value('Additional_Credit_info_3')}}Additional Credit info 4{{ \App\Models\batch::where('batch_name',$new->batch_name)->value('Additional_Credit_info_4')}}Additional Credit info 5{{ \App\Models\batch::where('batch_name',$new->batch_name)->value('Additional_Credit_info_5')}}RefNameRefNricRefTypeRefName2RefNric2RefType2RefName3RefNric3RefType3RefName4RefNric4RefType4RefName5RefNric5RefType5
{{$new->batch_name}}{{$new->DebtorName}}{{$new->NewNric}}{{$new->Occupation}}{{$new->OldNric}}{{$new->regAddress}}{{$new->employerAddress}}{{$new->AccountNo}}{{$new->CardNo}}{{$new->VehicleNo}}{{$new->ClientRefNo}}{{$new->AccountType}}{{$new->accountDescription}}{{$new->loanAmount}}{{$new->loanDate}}{{$new->chargeOfDate}}{{$new->DueDate}}{{$new->creditLimit}}{{$new->MinPayment}}{{$new->totalDue}}{{$new->ArrearsMonth}}{{$new->Interest}}{{$new->Discount}}{{$new->adminCharge}}{{$new->TotalSettlement}}{{$new->LegalCharge}}{{$new->LastPaidDate}}{{$new->LastPaidAmount}}{{$new->Additional_Credit_info_1}}{{$new->Additional_Credit_info_2}}{{$new->Additional_Credit_info_3}}{{$new->Additional_Credit_info_4}}{{$new->Additional_Credit_info_5}}{{$new->RefName}}{{$new->RefNric}}{{$new->RefType}}{{$new->RefName2}}{{$new->RefNric2}}{{$new->RefType2}}{{$new->RefName3}}{{$new->RefNric3}}{{$new->RefType3}}{{$new->RefName4}}{{$new->RefNric4}}{{$new->RefType4}}{{$new->RefName5}}{{$new->RefNric5}}{{$new->RefType5}}




@csrf
Debtor's Personal Information
Batch Name :

{{--row--}}

Name :

{{--row--}}
New Nric :

{{--row--}}
Old Nric :

{{--row--}}
Registered Address :

{{--row--}}

{{-- --}}
Employer Address :

{{--row--}}
Occupation :

{{--row--}}


{{--split 2nd scrin--}}
Account Information
{{--
--}} {{--
--}} {{-- Account Status :
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--row--}}
Account No :

{{--row--}}
Card No :

{{--row--}}
Vehicle No :

{{--row--}}
Client RefNo :

{{--row--}}
{{-- 3dr --}}
Debt Information
Account Type :

{{--row--}}
Account Description :

{{--row--}}
Loan Amount :

{{--row--}}
Loan Date :

{{--row--}}
Charge-off Date :

{{--row--}}

Arrears Month :

{{--row--}}
Total Due :

{{--row--}}
Min Repayment :

{{--row--}}
Legal Charge :

{{--row--}}
Admin Charge :

{{--row--}}
Full Settlement :

{{--row--}}

{{--row--}}
Interest :

{{--row--}}
Discount % :

{{--row--}}
Credit Limit :

{{--row--}}

{{--row--}}
Due Date :

{{--row--}}
Last Paid Date :

{{--row--}}
Last Paid Amount :

{{--row--}}

{{--row--}}
Additional Info 1:

{{--row--}}
Additional Info 2 :

{{--row--}}
Additional Info 3 :

{{--row--}} {{--row--}}
Additional Info 4 :

{{--row--}}
Additional Info 5 :

{{--row--}}
{{-- 4th--}}
References
Reference no : 1

Name :

{{--row--}}
Nric :

{{--row--}}
Type :

{{--row--}} {{--ref2--}} Reference no : 2

Name :

{{--row--}}
Nric :

{{--row--}}
Type :

{{--row--}} {{--ref3--}} Reference no : 3

Name :

{{--row--}}
Nric :

{{--row--}}
Type :

{{--row--}} {{--ref4--}} Reference no : 4

Name :

{{--row--}}
Nric :

{{--row--}}
Type :

{{--row--}} {{--ref5--}} Reference no : 5

Name :

{{--row--}}
Nric :

{{--row--}}
Type :

{{--row--}}
{{-- final--}}


@endif @endsection