@extends('storefront.layout') @section('title', 'Payment Terms Application') @section('content') @php $closedStatuses = [ \App\Enums\CreditApplicationStatus::Rejected, \App\Enums\CreditApplicationStatus::Withdrawn, \App\Enums\CreditApplicationStatus::Expired, \App\Enums\CreditApplicationStatus::Revoked, ]; $isResubmission = $application?->status === \App\Enums\CreditApplicationStatus::NeedsInformation; $canApply = $application === null || $isResubmission || in_array($application->status, $closedStatuses, true); $formApplication = $isResubmission ? $application : null; $formPrincipal = $formApplication?->principals?->sortBy('id')->first(); @endphp

Customer account

Payment Terms

Apply for business credit or review the status and terms assigned to your account.

Back to account
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any()) @endif @if ($application !== null)

Latest application

{{ $application->legal_company_name }}

Submitted {{ $application->submitted_at?->format('F j, Y') ?? 'not yet' }}

{{ $application->status->getLabel() }}

Requested limit

${{ number_format((float) $application->requested_limit, 2) }}

@if ($application->status === \App\Enums\CreditApplicationStatus::Approved)

Approved terms

NET {{ $application->approved_terms_days }}

Available credit

${{ number_format($application->availableLimit(), 2) }}

Valid through {{ $application->valid_until?->format('F j, Y') ?? 'ongoing review' }}

@else

Payment terms remain unavailable until the review is complete and an approval with a limit and validity period is recorded.

@endif
@endif @if ($isResubmission)

Additional information is required before the review can continue.

@if (filled($application->decision_reason_encrypted))

{{ $application->decision_reason_encrypted }}

@endif

Update the requested details below and resubmit application #{{ $application->getKey() }}.

@endif @if ($canApply)
@csrf @if ($isResubmission) @method('PUT') @endif

1 · Company

Legal business details

2 · Business address

3 · Financial contact and responsible party

Credit subject to approval.

@endif
@endsection