@include('components.forms.partials.cp-print-header')
Applicant: {{ $lead->applicant->applicant_name }}
Originator: {{ $lead->originator_info ? $lead->originator_info->name : $lead->originator }}
CURRENT AND PROPOSED FACILITIES
Pre-Factoring
Current (As-to-date)
Proposed
Factoring
Current (As-to-date)
Proposed
Client's Exposure
WFC's Exposure (As-to-date)
0
RM {{ number_format($cp->pre_amount, 2) }}
0
RM {{ number_format($cp->post_amount, 2) }}
RM {{ number_format($cp->client_exposure, 2) }}
RM {{ number_format($cp->wfc_exposure, 2) }}
Comments (briefly description the nature of business):
{{ $cp->company_background_comment }}
@php
$cpChecklistAnswers = $lead->cp_checklist_answers->keyBy('checklist_item_id');
$contractDetailsItems = $checklistItems['contract_details'] ?? collect();
$managementExperienceItems = $checklistItems['management_experience'] ?? collect();
$financialScreeningItems = $checklistItems['financial_screening'] ?? collect();
$nonFinancialScreeningItems = $checklistItems['non_financial_screening'] ?? collect();
@endphp
@forelse($contractDetailsItems as $i => $item)
{{ chr(97 + $i) }}. {{ $item->description }}
@php $answer = $cpChecklistAnswers[$item->id]->answer ?? null; @endphp
Yes
No
@empty
-
@endforelse
@forelse($managementExperienceItems as $i => $item)
{{ chr(97 + $i) }}. {{ $item->description }}
@php $answer = $cpChecklistAnswers[$item->id]->answer ?? null; @endphp
Yes
No
@empty
-
@endforelse
Name
Age
NRIC/Passport No
Position
Ownership (% shareholdings)
@forelse($lead->cp_key_managements as $km)
{{ $km->name }}
{{ $km->age }}
{{ $km->nric_passport_no }}
{{ $km->position }}
{{ $km->ownership_percent !== null ? number_format($km->ownership_percent, 2) : '' }}
@empty
@for ($i = 0; $i < 2; $i++)
@endfor
@endforelse
No
Name
Score
Remarks (Key contributing factors)
@forelse($lead->cp_credit_info as $i => $info)
{{ $i + 1 }}
{{ $info->name }}
{{ $info->score }}
@if($info->remarks)
@foreach(preg_split('/\r\n|\r|\n/', $info->remarks) as $line)
@if(trim($line) !== '')
{{ $line }}
@endif
@endforeach
@endif
@empty
@for ($i = 0; $i < 2; $i++)
{{ $i + 1 }}
•
@endfor
@endforelse
@forelse($lead->cp_borrowing_facilities as $facility)
{{ $facility->bank_name }}
{{ $facility->facility_type }}
{{ $facility->lo_date ? $facility->lo_date->format('d/m/Y') : '' }}
{{ $facility->facility_amount !== null ? number_format($facility->facility_amount, 2) : '' }}
{{ $facility->loan_outstanding !== null ? number_format($facility->loan_outstanding, 2) : '' }}
{{ $facility->loan_period }}
{{ $facility->debenture_charge }}
{{ $facility->consultant_name }}
@empty
@for ($i = 0; $i < 2; $i++)
@endfor
@endforelse
@forelse($financialScreeningItems as $item)
{{ $item->description }}
@if($item->note)
{{ $item->note }}
@endif
@php $answer = $cpChecklistAnswers[$item->id]->answer ?? null; @endphp
Yes
No
@empty
-
@endforelse
@php $currentGroup = null; $groupIndex = 0; @endphp
@forelse($nonFinancialScreeningItems as $item)
@php
if ($item->group_label !== $currentGroup) {
$currentGroup = $item->group_label;
$groupIndex = 0;
}
$answer = $cpChecklistAnswers[$item->id]->answer ?? null;
@endphp
@if($item->group_label && $groupIndex === 0)
{{ $item->group_label }}
@endif
{{ chr(97 + $groupIndex) }}. {{ $item->description }}
Yes
No
@php $groupIndex++; @endphp
@empty
-
@endforelse
Pre-Factoring
Factoring
Total
Processing Fee
Profit
Processing Fee
Administration Fee
Profit
RM {{ $cp->pre_process_fee }}
RM {{ number_format($cp->profit_charges, 2) }}
RM {{ number_format($cp->process_fee, 2) }}
RM {{ number_format($cp->post_admin_fees, 2) }}
RM {{ number_format($cp->discount_charges, 2) }}
RM {{
number_format(
($cp->pre_process_fee ?? 0) +
($cp->profit_charges ?? 0) +
($cp->process_fee ?? 0) +
($cp->post_admin_fees ?? 0) +
($cp->discount_charges ?? 0),
2
)
}}
@php
$postAmount = $cp->post_amount ?: 1; // avoid division by zero
$roce = ($cp->profit_charges + $cp->post_admin_fees + $cp->discount_charges + $cp->tot_process_fees) / $postAmount;
@endphp
Return On Capital Employed:
{{ number_format($roce * 100, 2) }}% @ {{ $cp->post_coll_period }} days
FORECAST ADVANCES AND COLLECTION TIMELINE
Pre-Factoring
Factoring
Advances to Invoicing{{ $cp->pre_coll_period }} days
Invoicing to Collection{{ $cp->post_coll_period }} days
@foreach($lead->justifications as $i => $justification)
{{ $i + 1 }}
{{ $justification->description }}
@endforeach
REVIEW REMARKS BY FACTORING MANAGER
{{ $cp->review_remarks }}
@if ($lead->pre_facility)
Offer {{ $lead->applicant->applicant_name }} a Pre-Factoring of RM {{ number_format($lead->ilo->pre_limit, 2, '.', ',') }} as per attached term sheet and our standard terms and conditions.
@endif
Offer {{ $lead->applicant->applicant_name }} a Factoring of RM {{ number_format($lead->ilo->limit, 2, '.', ',') }} as per attached term sheet and our standard terms and conditions.
Name: {{ $cp->prepared_by }}
Position: {{ $cp->prepared_position }}
Date: {{ $cp->prepared_date ? \Carbon\Carbon::parse($cp->prepared_date)->format('d/m/Y') : '' }}
REVIEW REMARKS BY HEAD OF FACTORING
{{ $cp->hof_review_remarks }}
Name: {{ $cp->verified_by }}
Position: {{ $cp->verified_position }}
Date: {{ $cp->verified_date ? \Carbon\Carbon::parse($cp->verified_date)->format('d/m/Y') : '' }}
1
Delivery Risk
@php
$selectedDeliveryRisks = collect(old('delivery_risks'))
->whenEmpty(fn($c) => collect($lead->risk_terms_delivery ?? []))
->pluck('risk_analyses_id')
->toArray();
@endphp
@foreach($deliveryTerms as $risk)
@if(in_array($risk->id, $selectedDeliveryRisks))
@else
@endif
{{ $risk->description }}
@endforeach
2
Collection Risk
@php
$selectedCollectionRisks = collect($lead->risk_terms_collection ?? [])
->pluck('risk_analyses_id')
->toArray();
if (old('collection_risks')) {
$selectedCollectionRisks = old('collection_risks');
}
@endphp
@foreach($collectionTerms as $risk)
@if(in_array($risk->id, $selectedCollectionRisks))
@else
@endif
{{ $risk->description }}
@endforeach
3
Exposure Risk
@php
$selectedExposureRisks = collect($lead->risk_terms_exposure ?? [])
->pluck('risk_analyses_id')
->toArray();
if (old('exposure_risks')) {
$selectedExposureRisks = old('exposure_risks');
}
@endphp
@foreach($exposureTerms as $risk)
@if(in_array($risk->id, $selectedExposureRisks))
@else
@endif
{{ $risk->description }}
@endforeach
@include('components.forms.partials.cp-approval-section', ['title' => 'SUBMISSION FOR APPROVAL', 'sectionKey' => 'submission_for_approval'])
@include('components.forms.partials.cp-approval-section', ['title' => 'CREDIT COMMITTEE (LIMIT BELOW RM500,000)', 'sectionKey' => 'credit_committee_below'])
@include('components.forms.partials.cp-approval-section', ['title' => 'CREDIT COMMITTEE (LIMIT ABOVE RM500,000)', 'sectionKey' => 'credit_committee_above'])
@php
$appendixDocs = $appendixDocs ?? collect();
$appendixItems = [
'appendix_a' => ['label' => 'Appendix A:', 'description' => 'Contract(s) / Purchase Order (s) / Invoice (s)'],
'appendix_b' => ['label' => 'Appendix B:', 'description' => 'Profile of Company (Directors/Partners/Proprietor)'],
'appendix_c' => ['label' => 'Appendix C:', 'description' => 'Bank Statements'],
'appendix_d' => ['label' => 'Appendix D:', 'description' => 'Audited Accounts'],
'appendix_e' => ['label' => 'Appendix E:', 'description' => 'Experian Report'],
];
@endphp
@foreach($appendixItems as $code => $item)
{{ $item['label'] }}
{{ $item['description'] }}
@if(!empty($appendixDocs[$code]) && $appendixDocs[$code]->files->count())
@foreach($appendixDocs[$code]->files as $file)
@endforeach
@endif
@endforeach