@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; use App\Models\LeadApplicant; $factoring = $facilities->where('code', Facility::CODE_FACTORING)->first(); $preFactoring = $facilities->where('code', Facility::CODE_PRE_FACTORING)->first(); $leadIndividual = optional(optional($lead)->applicant)->applicant_type == LeadApplicant::APPLICANT_INDIVIDUAL; $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'))
{{ $doc->notes }}
@endif @if($doc->template_path) Download Template @endif @if($doc->required) This section is required. @else This section is optional. @endif