{{-- Display all unique awarder names as "a, b, c, and d" --}} @php $awarderNames = $lead->contracts->pluck('awarder_name')->filter()->unique()->values(); $awarderCount = $awarderNames->count(); $hasPreFactoring = !empty($lead->pre_facility_code); @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 Preparation - {{ $lead->serial_no }}

Switch to Appraisal-Style Form

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

@if (session('success')) @endif @if (session('error')) @endif
Generate Credit Paper
@if(!empty($lead->creditpaper) && !empty($lead->creditpaper->reject_remarks))
Reject Notes:
{{ $lead->creditpaper->reject_remarks }}
@endif
@csrf @if($hasPreFactoring) @endif @if($hasPreFactoring) @endif @if($hasPreFactoring) @endif @if($hasPreFactoring) @endif
CLIENT NAME CUSTOMER NAME
{{ $lead->applicant->applicant_name }} {{ $lead->contracts->pluck('awarder_name')->filter()->unique()->implode('| ') }}
Financing Amount
Contract / PO Value (RM) *
Pre Factoring Amount (RM) *
Factoring 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) *
days
Projected Profit Charges (RM)
Post-factoring
Admin Fees (RM)
Projected Collection Period (days) *
days
Projected Discount Charges (RM)
Processing Fees
Factoring Facility *
Pre Factoring Facility *
Total Processing Fees
Exposure
Client's Exposure *
WFC's Exposure *
Justifications and Recommendations
@php $selectedJustifications = collect($lead->justifications ?? []) ->pluck('justification_id') ->filter() ->toArray(); if (old('justifications')) { $selectedJustifications = old('justifications'); } $otherTerms = old('other_terms'); if (!$otherTerms) { $otherTerms = collect($lead->justifications ?? []) ->whereNull('justification_id') ->map(function ($item) { return [ 'term' => $item->description ]; }) ->values() ->toArray(); } @endphp {{-- Predefined Justifications --}} @foreach($justifications as $just)
id, $selectedJustifications) ? 'checked' : '' }} >
@endforeach @error('justifications')
{{ $message }}
@enderror {{-- Additional / Custom Justifications --}}
@if(!empty($otherTerms)) @foreach($otherTerms as $term)
@endforeach @else
@endif
@error('other_terms')
{{ $message }}
@enderror
@if(!empty($lead->creditpaper)) @endif
View Related Document
@include('components.forms.related-documents', [ 'application_form' => true, 'term_sheet' => true, 'credit_paper' => false, ]) {{--
Signed Term Sheet Document
@if(!empty($lead->ilo) && !empty($lead->ilo->file_path)) @else
Preview Original Term Sheet The borrower has digitally signed the term sheet.
@endif
Generated By: {{ $lead->ilo->creator->name ?? '-' }}
Generated At: {{ $lead->ilo->created_at ? \Carbon\Carbon::parse($lead->ilo->created_at)->format('d/m/Y h:i A') : '-' }}
Signed By: {{ $lead->ilo->signer->name ?? '-' }}
Signed At: {{ $lead->ilo->signed_at ? \Carbon\Carbon::parse($lead->ilo->signed_at)->format('d/m/Y h:i A') : '-' }}
--}}
@csrf
@endsection @section('script') @endsection