@extends('layouts.app') @section('title') @lang('Application Form') @endsection @section('css') @endsection @php use App\Models\Info\FactoringType; use App\Models\Info\FactoringCategory; use App\Models\LeadApplicant; $preFactoringTypes = FactoringType::where('facility_code', FactoringCategory::CODE_PRE_FACTORING) ->orderBy('description') ->get(); $factoringTypes_ = FactoringType::where('facility_code', FactoringCategory::CODE_FACTORING) ->orderBy('description') ->get(); $leadIndividual = optional($lead->applicant)->applicant_type == LeadApplicant::APPLICANT_INDIVIDUAL; $toastSuccess = collect([ 'success', 'init_success', 'applicant_success', 'shareholder_success', 'bank_success', 'contract_success', 'payee_success', 'declaration_success', 'certification_success', 'doc_success', 'fee_success', ])->map(fn ($key) => session($key))->filter()->first(); @endphp @section('content') @component('components.breadcrumb') @slot('li_1') Lead @endslot @slot('title') Application Form @endslot @endcomponent {{-- Alert Messages --}} @if (session('error')) @endif @if ($errors->any()) @endif
{{--
logo
APPLICATION FOR FINANCING FACILITY
BORANG PEMOHONAN KEMUDAHAN PEMBIAYAAN
(Private and Confidential)
(Persendirian dan Sulit)
EVERISE VALUE SDN BHD (REG NO. 200301012980)
KL ECO CITY, LEVEL 15, MENARA 3A B03-D,
NO 3, JALAN BANGSAR, 59200 KUALA LUMPUR
--}} {{-- 1. FACILITY APPLIED & AMOUNT --}}
1. FACILITY APPLIED & AMOUNT
@php $initRemarks = []; if ($lead->verify_status_1 === 'rejected' && !empty($lead->verify_remarks_1)) { $initRemarks[] = $lead->verify_remarks_1; } if ($lead->verify_status_2 === 'rejected' && !empty($lead->verify_remarks_2)) { $initRemarks[] = $lead->verify_remarks_2; } @endphp @if(count($initRemarks)) @endif
@csrf
Pre-Factoring Factoring *
Type Amount Type Amount
@error('pre_purpose_code'){{ $message }}@enderror pre_purpose_code ? 'required' : 'disabled' }}> @error('pre_fund_amount'){{ $message }}@enderror @error('purpose_code'){{ $message }}@enderror @error('fund_amount'){{ $message }}@enderror
Duration * :
@error('tenure_period'){{ $message }}@enderror
@error('tenure_unit'){{ $message }}@enderror
Loan Summary * :
@error('title_summary'){{ $message }}@enderror
This section is required.
{{-- 2. PARTICULARS OF APPLICANT --}}
2. PARTICULARS OF APPLICANT
@php $applicantRemarks = []; if ($lead->applicant) { if ($lead->applicant->verify_status_1 === 'rejected' && !empty($lead->applicant->verify_remarks_1)) { $applicantRemarks[] = $lead->applicant->verify_remarks_1; } if ($lead->applicant->verify_status_2 === 'rejected' && !empty($lead->applicant->verify_remarks_2)) { $applicantRemarks[] = $lead->applicant->verify_remarks_2; } } @endphp @if(count($applicantRemarks)) @endif
@csrf
Business Constitution *
:
@error('applicant_type'){{ $message }}@enderror
{{-- Individual applicant fields --}}
Name of Applicant *
:
@error('applicant_name'){{ $message }}@enderror
NRIC *
:
@error('applicant_nric'){{ $message }}@enderror
Address *
:
@error('applicant_address_1'){{ $message }}@enderror
@error('applicant_postcode'){{ $message }}@enderror
@error('applicant_city'){{ $message }}@enderror
@error('applicant_state'){{ $message }}@enderror
Telephone No. *
:
+60
@error('applicant_phone'){{ $message }}@enderror
Email *
:
@error('applicant_email'){{ $message }}@enderror
{{-- Company / business applicant fields --}}
Name of Entity *
:
@error('applicant_name'){{ $message }}@enderror
Company Registration No *
:
@error('applicant_brn'){{ $message }}@enderror
Reg. Date *
:
@error('applicant_brd'){{ $message }}@enderror
Principal Activities
:
@error('principal_activities'){{ $message }}@enderror
Business Address *
:
@error('applicant_address_1'){{ $message }}@enderror
@error('applicant_postcode'){{ $message }}@enderror
@error('applicant_city'){{ $message }}@enderror
@error('applicant_state'){{ $message }}@enderror
Location of Branches (if any)
:
@error('applicant_branch_location'){{ $message }}@enderror
Telephone No. *
:
+60
@error('applicant_phone'){{ $message }}@enderror
Email *
:
@error('applicant_email'){{ $message }}@enderror
Facsimile No.
:
@error('applicant_fax_no'){{ $message }}@enderror
Person/s to Contact *
:
@error('contact_name'){{ $message }}@enderror
@error('contact_position'){{ $message }}@enderror
@error('contact_phone'){{ $message }}@enderror
@error('contact_email'){{ $message }}@enderror
Number of Employees
:
@error('applicant_employee_no'){{ $message }}@enderror
This section is required.
{{-- 3. SHAREHOLDERS / DIRECTORS / PARTNERS / PROPRIETOR --}}
3. SHAREHOLDERS / DIRECTORS / PARTNERS / PROPRIETOR
@php $shareholderRemarks = []; foreach ($shareholders as $shareholderR) { if ($shareholderR->verify_status_1 === 'rejected' && !empty($shareholderR->verify_remarks_1)) { $shareholderRemarks[] = $shareholderR->verify_remarks_1; } if ($shareholderR->verify_status_2 === 'rejected' && !empty($shareholderR->verify_remarks_2)) { $shareholderRemarks[] = $shareholderR->verify_remarks_2; } } @endphp @if(count($shareholderRemarks)) @endif
@csrf
@forelse ($shareholders as $shareholder) @empty @endforelse
Name * Designation * Shareholding (%) *
@error('shareholders.*.name'){{ $message }}@enderror
@error('shareholders.*.name'){{ $message }}@enderror
This section is not required
{{-- 4. FINANCIAL INSTITUTIONS / BANKS --}}
@if (session('bank_error')) @endif
4. BANK ACCOUNT INFORMATION
@php $bankRemarks = []; foreach ($banksData as $bankR) { if ($bankR->verify_status_1 === 'rejected' && !empty($bankR->verify_remarks_1)) { $bankRemarks[] = $bankR->verify_remarks_1; } if ($bankR->verify_status_2 === 'rejected' && !empty($bankR->verify_remarks_2)) { $bankRemarks[] = $bankR->verify_remarks_2; } } @endphp @if(count($bankRemarks)) @endif
@csrf
Relation with other Banks / Finance Companies / Factoring Companies / Others
@forelse ($banksData as $bank) @empty @endforelse
Bank * Account No. * Type of Facility Limit (RM)
@error('banks.*.bank_code'){{ $message }}@enderror @error('banks.*.acc_no'){{ $message }}@enderror
@error('banks.*.bank_code'){{ $message }}@enderror @error('banks.*.acc_no'){{ $message }}@enderror
This section is required to have at least 1 record.
{{-- 5. FINANCIAL INSTITUTIONS / BANKS --}}
5. FINANCIAL INSTITUTIONS / BANKS
@php $financialInstitutionRemarks = []; if ($financialInstitution) { if ($financialInstitution->verify_status_1 === 'rejected' && !empty($financialInstitution->verify_remarks_1)) { $financialInstitutionRemarks[] = $financialInstitution->verify_remarks_1; } if ($financialInstitution->verify_status_2 === 'rejected' && !empty($financialInstitution->verify_remarks_2)) { $financialInstitutionRemarks[] = $financialInstitution->verify_remarks_2; } } @endphp @if(count($financialInstitutionRemarks)) @endif
@csrf
Name
:
@error('name'){{ $message }}@enderror
Location
:
@error('location'){{ $message }}@enderror
Type of Facility
:
@error('facility_type'){{ $message }}@enderror
Limit (RM)
:
@error('limit_amount'){{ $message }}@enderror
This section is not required
{{-- 6. CUSTOMERS (CONTRACT AWARDER) --}}
@if (session('contract_error')) @endif
6. CUSTOMERS (CONTRACT AWARDER)
@php $contractRemarks = []; foreach ($contracts as $contractR) { if ($contractR->verify_status_1 === 'rejected' && !empty($contractR->verify_remarks_1)) { $contractRemarks[] = $contractR->verify_remarks_1; } if ($contractR->verify_status_2 === 'rejected' && !empty($contractR->verify_remarks_2)) { $contractRemarks[] = $contractR->verify_remarks_2; } } @endphp @if(count($contractRemarks)) @endif
@csrf
Customers for references :
@php $contractsLoop = $contracts->count() ? $contracts : [null]; @endphp
@foreach ($contractsLoop as $contract)

Customer {{ $loop->iteration }}
Company *
:
@error('contracts.*.awarder_name'){{ $message }}@enderror
Awarder Type *
:
Contract Summary *
:
@error('contracts.*.contract_title'){{ $message }}@enderror
Telephone No. *
:
@error('contracts.*.contact_phone'){{ $message }}@enderror
Contact Person *
:
@error('contracts.*.contact_person'){{ $message }}@enderror
Email *
:
@error('contracts.*.contact_email'){{ $message }}@enderror
Contract Amount (RM) *
:
@error('contracts.*.contract_value'){{ $message }}@enderror
Tenure (month(s)) *
:
@error('contracts.*.tenure_period'){{ $message }}@enderror
Source of Payment *
:
@error('contracts.*.payment_method'){{ $message }}@enderror
Assignment Of Payment *
:
@error('contracts.*.assignment_of_payment'){{ $message }}@enderror
@endforeach
This section is required to have at least 1 record.
{{-- 7. SUPPLIERS --}}
7. SUPPLIERS
@php $payeeRemarks = []; foreach ($payees as $payeeR) { if ($payeeR->verify_status_1 === 'rejected' && !empty($payeeR->verify_remarks_1)) { $payeeRemarks[] = $payeeR->verify_remarks_1; } if ($payeeR->verify_status_2 === 'rejected' && !empty($payeeR->verify_remarks_2)) { $payeeRemarks[] = $payeeR->verify_remarks_2; } } @endphp @if(count($payeeRemarks)) @endif
@csrf
@forelse ($payees as $payee)

Supplier {{ $loop->iteration }}
Company *
:
@error('payees.*.company'){{ $message }}@enderror
Telephone No. *
:
@error('payees.*.contact_phone'){{ $message }}@enderror
Contact Person *
:
@error('payees.*.contact_person'){{ $message }}@enderror
Email *
:
@error('payees.*.contact_email'){{ $message }}@enderror
@empty
Supplier 1
Company *
:
@error('payees.*.company'){{ $message }}@enderror
Telephone No. *
:
@error('payees.*.contact_phone'){{ $message }}@enderror
Contact Person *
:
@error('payees.*.contact_person'){{ $message }}@enderror
Email *
:
@error('payees.*.contact_email'){{ $message }}@enderror
@endforelse
{{--

Required only if you are applying for a Pre-Factoring or Post-Factoring facility.

--}}
This section is not required
{{-- 8. DECLARATION --}}
8. DECLARATION
@php $declarationRemarks = []; if ($declaration) { if ($declaration->verify_status_1 === 'rejected' && !empty($declaration->verify_remarks_1)) { $declarationRemarks[] = $declaration->verify_remarks_1; } if ($declaration->verify_status_2 === 'rejected' && !empty($declaration->verify_remarks_2)) { $declarationRemarks[] = $declaration->verify_remarks_2; } } @endphp @if(count($declarationRemarks)) @endif
@csrf
Has the firm/company, or any of its proprietor/partners/directors or shareholders ever filed for bankruptcy or been served with a winding up/bankruptcy petition? *
bankruptcy_status == 'yes' ? 'checked' : '' }} required> YES bankruptcy_status == 'no' ? 'checked' : '' }} required> NO @error('bankruptcy_status'){{ $message }}@enderror
Is there any pending litigation, legal and/or administrative proceeding against the firm/company or its proprietor/partners/directors and shareholders? *
litigation_status == 'yes' ? 'checked' : '' }} required> YES litigation_status == 'no' ? 'checked' : '' }} required> NO @error('litigation_status'){{ $message }}@enderror
Are there any judgements pending by or against the firm/company, proprietor/partners/directors and shareholders? *
judgement_status == 'yes' ? 'checked' : '' }} required> YES judgement_status == 'no' ? 'checked' : '' }} required> NO @error('judgement_status'){{ $message }}@enderror
Remarks :
This section is required.
{{-- 9. CERTIFICATION --}}
9. CERTIFICATION
@php $certificationRemarks = []; if ($certification) { if ($certification->verify_status_1 === 'rejected' && !empty($certification->verify_remarks_1)) { $certificationRemarks[] = $certification->verify_remarks_1; } if ($certification->verify_status_2 === 'rejected' && !empty($certification->verify_remarks_2)) { $certificationRemarks[] = $certification->verify_remarks_2; } } @endphp @if(count($certificationRemarks)) @endif
@csrf
cert_accuracy ? 'checked' : '' }} required> @error('cert_accuracy'){{ $message }}@enderror
cert_disclosure ? 'checked' : '' }} required> @error('cert_disclosure'){{ $message }}@enderror
cert_decline ? 'checked' : '' }} required> @error('cert_decline'){{ $message }}@enderror
This section is required.
{{-- DOCUMENT CHECKLIST --}}
@if (session('doc_error')) @endif
DOCUMENT CHECKLIST
@php $documentRemarks = []; foreach ($uploadedDocs as $docR) { if ($docR->verify_status_1 === 'rejected' && !empty($docR->verify_remarks_1)) { $documentRemarks[] = optional($docR->docType)->description . ' - ' . $docR->verify_remarks_1; } if ($docR->verify_status_2 === 'rejected' && !empty($docR->verify_remarks_2)) { $documentRemarks[] = optional($docR->docType)->description . ' - ' . $docR->verify_remarks_2; } } @endphp @if(count($documentRemarks)) @endif
Document
Required
Uploaded File
Action
@foreach ($docTypes as $level => $docsGroup) @continue((string) $level === (string) $consentsCategoryId) @foreach ($docsGroup as $doc) @php $hasDoc = isset($uploadedDocs[$doc->code]) && $uploadedDocs[$doc->code]->files->count(); @endphp
{{ $doc->description }}
{{ $doc->required ? 'Yes' : 'No' }}
@if ($hasDoc) @foreach ($uploadedDocs[$doc->code]->files as $file) @endforeach @else - @endif
@csrf @if ($hasDoc) @foreach ($uploadedDocs[$doc->code]->files as $file) @endforeach @endif
required && !$hasDoc) ? 'required' : '' }}> @error("docs.{$doc->code}.*"){{ $message }}@enderror
@endforeach @endforeach
{{-- CONSENTS --}} @foreach (($docTypes[$consentsCategoryId] ?? collect())->sortBy('code') as $doc) @continue(!$doc->is_active) @php $consentDoc = $uploadedDocs[$doc->code] ?? null; $hasConsentDoc = $consentDoc && $consentDoc->files->count(); @endphp
{{ $doc->description }}
@if($doc->notes)

{{ $doc->notes }}

@endif @if($doc->template_path) Download Template @endif @if($hasConsentDoc)
@foreach ($consentDoc->files as $file)
Uploaded file: {{ $file->file_name }}
@endforeach
@endif
@csrf @if($hasConsentDoc) @foreach ($consentDoc->files as $file) @endforeach @endif
required && !$hasConsentDoc) ? 'required' : '' }}> @error("docs.{$doc->code}.*"){{ $message }}@enderror
@if($doc->required) This section is required. @else This section is optional. @endif
@endforeach
{{-- APPLICATION FEE --}}
@if (session('fee_error')) @endif
APPLICATION FEE
@php $paymentRemarks = []; foreach ($lead->payments()->where('type', 'P1002')->get() as $paymentR) { if ($paymentR->verify_status_1 === 'rejected' && !empty($paymentR->verify_remarks_1)) { $paymentRemarks[] = $paymentR->verify_remarks_1; } if ($paymentR->verify_status_2 === 'rejected' && !empty($paymentR->verify_remarks_2)) { $paymentRemarks[] = $paymentR->verify_remarks_2; } } @endphp @if(count($paymentRemarks)) @endif
@if ($lead->payments()->where('type','P1002')->where('status','paid')->where('method','FPX')->exists())
Payment has been made through FPX
@else @php $manualFile = $lead->payments()->where('type','P1002')->where('status','manual')->where('method','manual')->first(); @endphp
@csrf
Fee Amount (RM)
:
Payment Receipt @if(empty($lead->payment) || empty($lead->payment->receipt_path))*@endif
:
@if($manualFile) {{ $manualFile->file_name }} @endif payment) || empty($lead->payment->receipt_path) ? 'required' : '' }}> @error('payment_docs'){{ $message }}@enderror
Notes
:
This section is required.
@endif
@if($hasRejection ?? false)
@else Submit Application @endif
@endsection @section('script') @endsection