{{-- Display all unique awarder names as "a, b, c, and d" --}} @php $awarderNames = $lead->contracts->pluck('awarder_name')->filter()->unique()->values(); $awarderCount = $awarderNames->count(); @endphp @extends('layouts.app') @section('title') Credit Paper Preparation @endsection @section('css') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Credit Paper @endslot @slot('title') {{ $lead->serial_no }} @endslot @endcomponent

Credit Paper Generation - {{ $lead->serial_no }}

Please review the application details below. Once confirmed, you may proceed to generate the credit paper for this lead.

Generate Credit Paper
CLIENT NAME CUSTOMER NAME
{{ $lead->applicant->applicant_name }} {{ $lead->contracts->pluck('awarder_name')->filter()->unique()->implode('| ') }}
Financing Amount
Contract / PO Value (RM)
Pre Amount (RM)
Post Amount (RM)
Financing Charges
Pre Factoring Charges (per month on the advance amount)
%
Factoring Admin Fees (on invoice value)
%
Factoring Discount Charges (per month on the advance amount)
%
Pre-factoring
Projected Collection Period (days)
%
Projected Profit Charges (RM)
Projected Profit Charges (RM)
Admin Fees (%)
%
Admin Fees (RM)
Projected Collection Period (Post)
Projected Discount Charges (RM)
Facility Application
Title / Summary : {{ $lead->title_summary }}
Facility : {{ $lead->facility->description }}
Purpose : {{ $lead->purpose->description }}
Title Summary : {{ $lead->title_summary }}
Funding Amount : RM {{ number_format($lead->fund_amount, 2, '.', ',') }}
Tenure Period : {{ $lead->tenure_period }} {{ optional($lead->tenure)->description ?? $lead->tenure_unit }}
@if(!empty($lead->verify_status_1))
First Verification
Status: @if($lead->verify_status_1 == 'accepted') {{ ucfirst($lead->verify_status_1) }} @elseif($lead->verify_status_1 == 'rejected') {{ ucfirst($lead->verify_status_1) }} @else {{ ucfirst($lead->verify_status_1) }} @endif
Remarks: {{ $lead->verify_remarks_1 ?? '-' }}
Verified By: {{ $lead->verify_by_1 ?? '-' }}
Date/Time: {{ $lead->verify_at_1 ? \Carbon\Carbon::parse($lead->verify_at_1)->format('d/m/Y h:i A') : '-' }}
@endif @if(!empty($lead->verify_status_2))
Second Verification
Status: @if($lead->verify_status_2 == 'accepted') {{ ucfirst($lead->verify_status_2) }} @elseif($lead->verify_status_2 == 'rejected') {{ ucfirst($lead->verify_status_2) }} @else {{ ucfirst($lead->verify_status_2) }} @endif
Remarks: {{ $lead->verify_remarks_2 ?? '-' }}
Verified By: {{ $lead->verify_by_2 ?? '-' }}
Date/Time: {{ $lead->verify_at_2 ? \Carbon\Carbon::parse($lead->verify_at_2)->format('d/m/Y h:i A') : '-' }}
@else
@endif
Applicant Information
Name of Entity :
{{ optional($lead->applicant)->applicant_name ?? '-' }}
@if(optional($lead->applicant)->applicant_type == 'IND')
NRIC :
{{ optional($lead->applicant)->applicant_nric ?? '-' }}
@else
Date of Registration :
{{ optional($lead->applicant)->applicant_brd ?? '-' }}
Business Registration No. :
{{ optional($lead->applicant)->applicant_brn ?? '-' }}
@endif
Business Address :
{{ optional($lead->applicant)->applicant_address_1 ?? '-' }}
@if(!empty($lead->applicant->applicant_address_2))
{{ $lead->applicant->applicant_address_2 }}
@endif
{{ optional($lead->applicant)->applicant_postcode ?? '' }} {{ optional($lead->applicant)->applicant_city ?? '' }}@if(optional($lead->applicant->state)->name), {{ optional($lead->applicant->state)->name }}@endif
Telephone Number :
@php $phone = optional($lead->applicant)->applicant_phone; @endphp {{ !empty($phone) ? '+60' . $phone : '-' }}
E-Mail Address :
{{ optional($lead->applicant)->applicant_email ?? '-' }}
Contact Person :
{{ optional($lead->applicant)->contact_name ?? '-' }}
Position :
{{ optional($lead->applicant)->contact_position ?? '-' }}
Telephone Number :
@php $contact_phone = optional($lead->applicant)->contact_phone; @endphp {{ !empty($contact_phone) ? '+60' . $contact_phone : '-' }}
E-Mail Address :
{{ optional($lead->applicant)->contact_email ?? '-' }}
@if(!empty($lead->applicant->verify_status_1))
First Verification
Status: @if($lead->applicant->verify_status_1 == 'accepted') {{ ucfirst($lead->applicant->verify_status_1) }} @elseif($lead->applicant->verify_status_1 == 'rejected') {{ ucfirst($lead->applicant->verify_status_1) }} @else {{ ucfirst($lead->applicant->verify_status_1) }} @endif
Remarks: {{ $lead->applicant->verify_remarks_1 ?? '-' }}
Verified By: {{ $lead->applicant->verify_by_1 ?? '-' }}
Date/Time: {{ $lead->applicant->verify_at_1 ? \Carbon\Carbon::parse($lead->applicant->verify_at_1)->format('d/m/Y h:i A') : '-' }}
@endif @if(!empty($lead->applicant->verify_status_2))
Second Verification
Status: @if($lead->applicant->verify_status_2 == 'accepted') {{ ucfirst($lead->applicant->verify_status_2) }} @elseif($lead->applicant->verify_status_2 == 'rejected') {{ ucfirst($lead->applicant->verify_status_2) }} @else {{ ucfirst($lead->applicant->verify_status_2) }} @endif
Remarks: {{ $lead->applicant->verify_remarks_2 ?? '-' }}
Verified By: {{ $lead->applicant->verify_by_2 ?? '-' }}
Date/Time: {{ $lead->applicant->verify_at_2 ? \Carbon\Carbon::parse($lead->applicant->verify_at_2)->format('d/m/Y h:i A') : '-' }}
@endif
Bank Account Information
@if($lead->banks->isEmpty()) @else @foreach($lead->banks as $bank) @endforeach @endif
Bank Account Number Facility Limit Status
No bank account information available
{{ $bank->ref_bank->bank_name ?? '-' }} {{ $bank->acc_no ?? '-' }} {{ $bank->facility ?? '-' }} {{ isset($bank->limit_amount) ? 'RM ' . number_format($bank->limit_amount, 0, '.', ',') : '-' }} @if(!empty($bank->verify_status_1))
First Verification
Status: @if($bank->verify_status_1 == 'accepted') {{ ucfirst($bank->verify_status_1) }} @elseif($bank->verify_status_1 == 'rejected') {{ ucfirst($bank->verify_status_1) }} @else {{ ucfirst($bank->verify_status_1) }} @endif
Remarks: {{ $bank->verify_remarks_1 ?? '-' }}
Verified By: {{ $bank->verify_by_1 ?? '-' }}
Date/Time: {{ $bank->verify_at_1 ? \Carbon\Carbon::parse($bank->verify_at_1)->format('d/m/Y h:i A') : '-' }}
@endif @if(!empty($bank->verify_status_2))
Second Verification
Status: @if($bank->verify_status_2 == 'accepted') {{ ucfirst($bank->verify_status_2) }} @elseif($bank->verify_status_2 == 'rejected') {{ ucfirst($bank->verify_status_2) }} @else {{ ucfirst($bank->verify_status_2) }} @endif
Remarks: {{ $bank->verify_remarks_2 ?? '-' }}
Verified By: {{ $bank->verify_by_2 ?? '-' }}
Date/Time: {{ $bank->verify_at_2 ? \Carbon\Carbon::parse($bank->verify_at_2)->format('d/m/Y h:i A') : '-' }}
@endif
Contract Information
@if($lead->contracts->isEmpty()) @else @foreach($lead->contracts as $contract) @endforeach @endif
Contract Title Awarder Amount Payment Method Status
No contract information available
{{ $contract->contract_title ?? '-' }} {{ $contract->awarder_name ?? '-' }} {{ isset($contract->contract_value) ? 'RM ' . number_format($contract->contract_value, 0, '.', ',') : '-' }} {{ $contract->payment->description ?? '-' }} @if(!empty($contract->verify_status_1))
First Verification
Status: @if($contract->verify_status_1 == 'accepted') {{ ucfirst($contract->verify_status_1) }} @elseif($contract->verify_status_1 == 'rejected') {{ ucfirst($contract->verify_status_1) }} @else {{ ucfirst($contract->verify_status_1) }} @endif
Remarks: {{ $contract->verify_remarks_1 ?? '-' }}
Verified By: {{ $contract->verify_by_1 ?? '-' }}
Date/Time: {{ $contract->verify_at_1 ? \Carbon\Carbon::parse($contract->verify_at_1)->format('d/m/Y h:i A') : '-' }}
@endif @if(!empty($contract->verify_status_2))
Second Verification
Status: @if($contract->verify_status_2 == 'accepted') {{ ucfirst($contract->verify_status_2) }} @elseif($contract->verify_status_2 == 'rejected') {{ ucfirst($contract->verify_status_2) }} @else {{ ucfirst($contract->verify_status_2) }} @endif
Remarks: {{ $contract->verify_remarks_2 ?? '-' }}
Verified By: {{ $contract->verify_by_2 ?? '-' }}
Date/Time: {{ $contract->verify_at_2 ? \Carbon\Carbon::parse($contract->verify_at_2)->format('d/m/Y h:i A') : '-' }}
@endif
Pre-Factoring Payee
@if($lead->payees->isEmpty()) @else @foreach($lead->payees as $payee) @endforeach @endif
Payee Company Business Address Purpose Amount Status
No payee information available
{{ $payee->company ?? '-' }} {{ $payee->address_1 ?? '' }} @if(!empty($payee->address_2))
{{ $payee->address_2 }} @endif @if(!empty($payee->postcode) || !empty($payee->city) || !empty(optional($payee->payee_state)->name))
{{ $payee->postcode ?? '' }} {{ $payee->city ?? '' }} @if(!empty(optional($payee->payee_state)->name)), {{ optional($payee->payee_state)->name }}@endif @endif
{{ $payee->purpose ?? '-' }} {{ isset($payee->amount) ? 'RM ' . number_format($payee->amount, 0, '.', ',') : '-' }} @if(!empty($payee->verify_status_1))
First Verification
Status: @if($payee->verify_status_1 == 'accepted') {{ ucfirst($payee->verify_status_1) }} @elseif($payee->verify_status_1 == 'rejected') {{ ucfirst($payee->verify_status_1) }} @else {{ ucfirst($payee->verify_status_1) }} @endif
Remarks: {{ $payee->verify_remarks_1 ?? '-' }}
Verified By: {{ $payee->verify_by_1 ?? '-' }}
Date/Time: {{ $payee->verify_at_1 ? \Carbon\Carbon::parse($payee->verify_at_1)->format('d/m/Y h:i A') : '-' }}
@endif @if(!empty($payee->verify_status_2))
Second Verification
Status: @if($payee->verify_status_2 == 'accepted') {{ ucfirst($payee->verify_status_2) }} @elseif($payee->verify_status_2 == 'rejected') {{ ucfirst($payee->verify_status_2) }} @else {{ ucfirst($payee->verify_status_2) }} @endif
Remarks: {{ $payee->verify_remarks_2 ?? '-' }}
Verified By: {{ $payee->verify_by_2 ?? '-' }}
Date/Time: {{ $payee->verify_at_2 ? \Carbon\Carbon::parse($payee->verify_at_2)->format('d/m/Y h:i A') : '-' }}
@endif
Documents Checklist
@foreach($doc_types as $doc) @php $leadDocs = $lead->docs->where('type', $doc->code); $hasDoc = $leadDocs->isNotEmpty(); @endphp
{{ $doc->description }}
@if($hasDoc) @foreach($leadDocs as $leadDoc) @foreach($leadDoc->files as $file) {{ $file->file_name }} @if(!$loop->last)
@endif @endforeach @if(!$loop->last)
@endif @endforeach @if(!empty($leadDoc->verify_status_1))
First Verification
Status: @if($leadDoc->verify_status_1 == 'accepted') {{ ucfirst($leadDoc->verify_status_1) }} @elseif($leadDoc->verify_status_1 == 'rejected') {{ ucfirst($leadDoc->verify_status_1) }} @else {{ ucfirst($leadDoc->verify_status_1) }} @endif
Remarks: {{ $leadDoc->verify_remarks_1 ?? '-' }}
Verified By: {{ $leadDoc->verify_by_1 ?? '-' }}
Date/Time: {{ $leadDoc->verify_at_1 ? \Carbon\Carbon::parse($leadDoc->verify_at_1)->format('d/m/Y h:i A') : '-' }}
@endif @if(!empty($leadDoc->verify_status_2))
Second Verification
Status: @if($leadDoc->verify_status_2 == 'accepted') {{ ucfirst($leadDoc->verify_status_2) }} @elseif($leadDoc->verify_status_2 == 'rejected') {{ ucfirst($leadDoc->verify_status_2) }} @else {{ ucfirst($leadDoc->verify_status_2) }} @endif
Remarks: {{ $leadDoc->verify_remarks_2 ?? '-' }}
Verified By: {{ $leadDoc->verify_by_2 ?? '-' }}
Date/Time: {{ $leadDoc->verify_at_2 ? \Carbon\Carbon::parse($leadDoc->verify_at_2)->format('d/m/Y h:i A') : '-' }}
@endif @else No file found. @endif
@if(!$loop->last)
@endif @endforeach
Fee Payment
@if($payment->method == 'manual') @endif
Payment Method : {{ $payment->method == 'manual' ? 'Manual Payment' : 'FPX Payment' }}
Amount : RM {{ number_format($payment->amount, 2, '.', ',') }}
Document @if(!empty($payment->file_path)) : {{ $payment->file_name }} @else No document uploaded @endif
Facility Term Sheet
@if(!empty($lead->ilo->deduction_term)) @endif @if(!empty($lead->ilo->tax_term)) @endif
Everise Value Sdn Bhd

(Reg No. 200301012980)

Logo
FACILITY TERM SHEET
Facility: Factoring
Applicant: {{ $lead->applicant->applicant_name }}
Purpose: {{ $lead->ilo->purpose->description }}
Limit: RM {{ number_format($lead->ilo->limit, 2, '.', ',') }}
Administration Fee: {{ $lead->ilo->admin_fee }}% of gross invoice value, charged on a per invoice basis.
* If the recourse period expires withoud payment, an additional 1.5% administration fee will be applied.
Profit Rate: {{ $lead->ilo->profit_rate }}% per month of advanced amount, calculated on a per day basis.
Late Payment Charges: {{ $lead->ilo->profit_rate }}% per year of advance amount and profits will be charged upon expiry of recourse period.
Credit Period: {{ ucfirst(numberToWords($lead->ilo->credit_period)) }} ({{ $lead->ilo->credit_period }}) days from date of invoice.
Recourse Period: {{ ucfirst(numberToWords($lead->ilo->recourse_period)) }} ({{ $lead->ilo->credit_period }}) days upon expiry of credit period.
Security and Credit Support:
1. Factoring letter of offer and acceptance denoting offer by Everise Value Sdn Bhd and acceptance by {{ $lead->applicant->applicant_name }}.
2. Factoring Agreement between {{ $lead->applicant->applicant_name }} and Everise Value Sdn. Bhd.
3. Board resolution to change authorised signatory bank account (Escrow Account) related to @if($awarderCount === 1) {{ $awarderNames[0] }} @elseif($awarderCount === 2) {{ $awarderNames[0] }} and {{ $awarderNames[1] }} @elseif($awarderCount > 2) {{ $awarderNames->slice(0, $awarderCount - 1)->implode(', ') }}, and {{ $awarderNames[$awarderCount - 1] }} @endif.
4. Letter of undertaking to remit contract proceeds to Everise Value Sdn. Bhd.
5. Assignment of all factored accounts receivable.
6. Guarantee and Idemnity by the director(s) / shareholder(s) of {{ $lead->applicant->applicant_name }}.
Processing Fees: RM {{ number_format($lead->ilo->process_fee, 2, '.', ',') }}
Stamping Fees: {{ $lead->ilo->stamp_fee }}
(Ad valorem rate of 0.5% of facility value plus RM10 additional copy, which shall be deducted upon 1st disbursement of the facility.)
Stamp duty to be charged under the Stamp Act, 1949
Deduction {{ $lead->ilo->deduction_term }}
Taxes {{ $lead->ilo->tax_term }}
@if(!empty($lead->ilo->pre_deduction_term)) @endif @if(!empty($lead->ilo->pre_tax_term)) @endif
Everise Value Sdn Bhd

(Reg No. 200301012980)

Logo
FACILITY TERM SHEET
Facility: Pre-Factoring
Applicant: {{ $lead->applicant->applicant_name }}
Purpose:
Facility Limit (RM)
{{ $lead->ilo->pre_purpose->description }} RM {{ number_format($lead->ilo->pre_limit, 2, '.', ',') }}
Limit: {{ $lead->ilo->pre_limit }}
Profit Rate: {{ $lead->ilo->pre_profit_rate }}% per month of advanced amount, calculated on a per day basis.
Late Payment Charges: {{ $lead->ilo->pre_late_charges }}% per year of advanced amount and profits will be charged upon expiry of recourse period.
Margin of Advance: Up to {{ $lead->ilo->pre_advance_margin }}% of purchase period or incurred cost.
Credit Period: {{ ucfirst(numberToWords($lead->ilo->pre_credit_period)) }} ({{ $lead->ilo->pre_credit_period }}) days from date of advance.
Recourse Period: {{ ucfirst(numberToWords($lead->ilo->pre_recourse_period)) }} ({{ $lead->ilo->pre_recourse_period }}) days upon expiry of credit period.
Security and Credit Support:
1. Pre-factoring letter of offer and acceptance denoting offer by Everise Value Sdn. Bhd. and acceptance by {{ $lead->applicant->applicant_name }}
2. Factoring agreement between {{ $lead->applicant->applicant_name }} and Everise Value Sdn. Bhd.
3. Board resolution to change authorised signatory bank account (Escrow Account) related to @if($awarderCount === 1) {{ $awarderNames[0] }} @elseif($awarderCount === 2) {{ $awarderNames[0] }} and {{ $awarderNames[1] }} @elseif($awarderCount > 2) {{ $awarderNames->slice(0, $awarderCount - 1)->implode(', ') }}, and {{ $awarderNames[$awarderCount - 1] }} @endif factored account receivable.
4. Letter of undertaking to remit contract proceeds to Everise Value Sdn. Bhd.
5. Assignment of all factored accounts receivable.
6. Guarantee and Idemnity by the director(s) / shareholder(s) of {{ $lead->applicant->applicant_name }}
Processing Fees: RM {{ number_format($lead->ilo->pre_process_fee, 2, '.', ',') }}
Deduction {{ $lead->ilo->pre_deduction_term }}
Taxes {{ $lead->ilo->pre_tax_term }}
{{-- Preview PDF --}}
@csrf
@endsection @section('script') @endsection