@php use App\Models\LeadApplicant; @endphp
@include('components.forms.partials.cp-print-header')
CREDIT APPRAISAL
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) }}
COMPANY BACKGROUND
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
CONTRACT DETAILS
@forelse($contractDetailsItems as $i => $item) @empty @endforelse
{{ chr(97 + $i) }}. {{ $item->description }} @php $answer = $cpChecklistAnswers[$item->id]->answer ?? null; @endphp Yes No
-
MANAGEMENT EXPERIENCE
@forelse($managementExperienceItems as $i => $item) @empty @endforelse
{{ chr(97 + $i) }}. {{ $item->description }} @php $answer = $cpChecklistAnswers[$item->id]->answer ?? null; @endphp Yes No
-
@forelse($lead->cp_key_managements as $km) @empty @for ($i = 0; $i < 2; $i++) @endfor @endforelse
Name Age NRIC/Passport No Position Ownership (% shareholdings)
{{ $km->name }} {{ $km->age }} {{ $km->nric_passport_no }} {{ $km->position }} {{ $km->ownership_percent !== null ? number_format($km->ownership_percent, 2) : '' }}
         
CREDIT INFORMATION
@forelse($lead->cp_credit_info as $i => $info) @empty @for ($i = 0; $i < 2; $i++) @endfor @endforelse
No Name Score Remarks (Key contributing factors)
{{ $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
{{ $i + 1 }}     • 
BORROWING FACILITIES
@forelse($lead->cp_borrowing_facilities as $facility) @empty @for ($i = 0; $i < 2; $i++) @endfor @endforelse
Name of Banks/FI Type of facilities LO Date Facility Amt Loan Os/g (RM) Period of Loan Debenture Charge (if any) Name of Consultant (if any)
{{ $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 }}
               
FINANCIAL SCREENING
@forelse($financialScreeningItems as $item) @empty @endforelse
{{ $item->description }} @if($item->note)
{{ $item->note }}
@endif
@php $answer = $cpChecklistAnswers[$item->id]->answer ?? null; @endphp Yes No
-
NON-FINANCIAL SCREENING
@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) @endif @php $groupIndex++; @endphp @empty @endforelse
{{ $item->group_label }}
{{ chr(97 + $groupIndex) }}. {{ $item->description }} Yes No
-
PROJECTED INCOME
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
JUSTIFICATIONS
@foreach($lead->justifications as $i => $justification) @endforeach
{{ $i + 1 }} {{ $justification->description }}
REVIEW REMARKS BY FACTORING MANAGER
{{ $cp->review_remarks }}
RECOMMENDATIONS
    @if ($lead->pre_facility)
  1. 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.
  2. @endif
  3. 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.
DUE DILIGENCE SIGN OFF
Prepared by :
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 }}
Verified by :
Name: {{ $cp->verified_by }}
Position: {{ $cp->verified_position }}
Date: {{ $cp->verified_date ? \Carbon\Carbon::parse($cp->verified_date)->format('d/m/Y') : '' }}
RISK ANALYSIS REPORT
@php $selectedDeliveryRisks = collect(old('delivery_risks')) ->whenEmpty(fn($c) => collect($lead->risk_terms_delivery ?? [])) ->pluck('risk_analyses_id') ->toArray(); @endphp @php $selectedCollectionRisks = collect($lead->risk_terms_collection ?? []) ->pluck('risk_analyses_id') ->toArray(); if (old('collection_risks')) { $selectedCollectionRisks = old('collection_risks'); } @endphp @php $selectedExposureRisks = collect($lead->risk_terms_exposure ?? []) ->pluck('risk_analyses_id') ->toArray(); if (old('exposure_risks')) { $selectedExposureRisks = old('exposure_risks'); } @endphp
1 Delivery Risk @foreach($deliveryTerms as $risk)
@if(in_array($risk->id, $selectedDeliveryRisks)) @else @endif
@endforeach
2 Collection Risk @foreach($collectionTerms as $risk)
@if(in_array($risk->id, $selectedCollectionRisks)) @else @endif
@endforeach
3 Exposure Risk @foreach($exposureTerms as $risk)
@if(in_array($risk->id, $selectedExposureRisks)) @else @endif
@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'])
APPENDICES
@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) @endforeach
{{ $item['label'] }} {{ $item['description'] }} @if(!empty($appendixDocs[$code]) && $appendixDocs[$code]->files->count())
@foreach($appendixDocs[$code]->files as $file) @endforeach
@endif