@extends('layouts.app') @section('title') Application Form @endsection @section('css') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Application @endslot @slot('title') Application Form @endslot @endcomponent @php use App\Models\Info\Facility; $factoring = $facilities->where('code', Facility::CODE_FACTORING)->first(); $preFactoring = $facilities->where('code', Facility::CODE_PRE_FACTORING)->first(); $sectionRejections = function ($records) { $records = is_iterable($records) ? collect($records) : collect([$records]); return $records->filter()->flatMap(function ($r) { $out = []; if (($r->verify_status_1 ?? null) === 'rejected' && !empty($r->verify_remarks_1)) { $out[] = $r->verify_remarks_1; } if (($r->verify_status_2 ?? null) === 'rejected' && !empty($r->verify_remarks_2)) { $out[] = $r->verify_remarks_2; } return $out; }); }; $toastSuccess = collect(['success', 'error'])->map(fn ($key) => $key === 'success' ? session('success') : null)->filter()->first(); @endphp @if (session('error')) @endif @if ($errors->any()) @endif
{{-- 1. FACILITY APPLIED & AMOUNT --}}
1. FACILITY APPLIED & AMOUNT
@php $initRemarks = $sectionRejections($lead); @endphp @if ($initRemarks->isNotEmpty()) @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
Originator * :
@error('originator'){{ $message }}@enderror
Loan Summary * :
@error('title_summary'){{ $message }}@enderror
This section is required.
@endsection @section('script') @endsection