{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: form.blade.php ------------------------------------------------------ Use: The user credit-request wizard, ported one-to-one from the approved design: collateral -> documents -> amount + plan (slider, month chips, per-plan monthly) -> confirm with the fee card and the terms gate. Client-side eligibility mirrors the server. ===================================================== --}} @extends('layouts.user') @section('title', __('front.credit.title')) @section('breadcrumb') @endsection @section('page')

{{ __('front.credit.title') }}

{{ __('front.credit.subtitle') }}

{{ __('front.credit.tab_new') }} {{ __('front.credit.tab_history') }}
@if ($blocked) {{-- Clean white card so it never clashes with the panel background. --}}

{{ __('front.credit.blocked_title') }}

{{ __('front.credit.blocked_body') }}

{{ __('front.credit.blocked_cta') }}
@elseif (! empty($standingBlocked)) {{-- Good-standing gate: the user has not yet earned the level the site requires to open a request. Show where they stand and how to grow. --}}

{{ __('front.credit.standing_gate_title') }}

{{ __('front.credit.standing_gate_body', [ 'required' => \App\Support\GoodStanding::label($requiredLevel), 'current' => \App\Support\GoodStanding::label($standing['level']), ]) }}

@else @php $collateralIcons = [ 'cheque' => '', 'gold' => '', 'salary' => '', 'promissory' => '', ]; @endphp
{{-- Stepper --}}
@foreach (['collateral', 'documents', 'plan', 'confirm'] as $i => $stepKey)
@fa($i + 1) {{ __("front.credit.step_{$stepKey}") }}
@if ($i < 3)
@endif @endforeach
@csrf {{-- ===== STEP 1: collateral ===== --}}
{{ __('front.credit.collateral_title') }}

{{ __('front.credit.collateral_hint') }}

@foreach (\App\Models\Plan::COLLATERALS as $type) @php $cfg = $collateralConfigs[$type]; $max = $cfg['max']; $maxLabel = $cfg['available'] ? __('front.credit.collateral_up_to', ['amount' => ($max >= 1000000 && $max % 1000000 === 0 ? \App\Support\Format::persianDigits((string) intdiv($max, 1000000)).' '.__('front.credit.js_million') : \App\Support\Format::persianDigits(\App\Support\Format::tomanFa($max)) ).' '.__('front.credit.toman')]) : __('front.credit.collateral_unavailable'); @endphp @endforeach
{{-- ===== STEP 2: documents (+ organization if salary) ===== --}}
{{ __('front.credit.documents_title') }}

{{ __('front.credit.documents_hint') }}

{{ __('front.credit.organization_hint') }}

{{-- ===== STEP 3: amount + plan ===== --}}
{{ __('front.credit.plan_title') }}

{{ __('front.credit.plan_hint') }}

{{-- filters: amount slider + month chips --}}
{{ __('front.credit.toman') }}
{{-- plan list --}}

{{-- Reminds the user the list is scoped to the collateral they picked, and how to widen it (go back and change it). --}}

{{ __('front.credit.plan_collateral_note') }}

{{-- ===== STEP 4: confirm + fee + terms ===== --}}
{{ __('front.credit.confirm_title') }}

{{ __('front.credit.confirm_hint') }}

{{-- request details --}}
{{ __('front.credit.summary_collateral') }}
{{ __('front.credit.summary_amount') }} {{ __('front.credit.toman') }}
{{ __('front.credit.summary_plan') }} {{ __('front.credit.js_monthly_instalments') }}
{{ __('front.credit.summary_grace') }}
{{ __('front.credit.summary_penalty') }} {{ __('front.credit.js_percent_monthly') }}
{{-- fee card --}}
{{ __('front.credit.summary_monthly') }} {{ __('front.credit.toman') }}
{{ __('front.credit.summary_fee_percent') }} {{ __('front.credit.js_percent') }}
{{ __('front.credit.fee_payable') }} {{ __('front.credit.toman') }}

{{ __('front.credit.fee_card_note') }}

{{-- terms gate --}}
{{-- Collateral upload progress: the documents can be up to 10MB each, so the percentage climbs while they upload. --}}
{{ __('front.credit.uploading') }} ٪
{{-- Nav --}}
{{-- ===== TERMS MODAL ===== --}} {{-- ===== STANDING LOCK MODAL ===== --}}
@endif @endsection