{{-- Installment Details --}}

{{ $installment->main_title }}

{{ nl2br($installment->description) }}

@if(!empty($installment->capacity)) @php $reachedCapacityPercent = $installment->reachedCapacityPercent(); @endphp @if($reachedCapacityPercent > 0)
{!! trans('update.percent_capacity_reached',['percent' => $reachedCapacityPercent]) !!}
@endif @endif @if(!empty($installment->banner))
{{ $installment->main_title }}
@endif @if(!empty($installment->options))
@php $installmentOptions = explode(\App\Models\Installment::$optionsExplodeKey, $installment->options); @endphp @foreach($installmentOptions as $installmentOption)
{{ $installmentOption }}
@endforeach
@endif
{{-- Right Card (Payment Details) --}}
@php $totalPayments = $installment->totalPayments($itemPrice ?? 1); $installmentTotalInterest = $installment->totalInterest($itemPrice, $totalPayments); @endphp
{{ handlePrice($totalPayments) }}
{{ trans('update.total_payment') }} @if($installmentTotalInterest > 0) ({!! trans('update.percent_interest_bold',['percent' => $installmentTotalInterest]) !!}) @endif
{{-- Payment Steps --}}
{{-- Upfront --}}
{{ !empty($installment->upfront) ? handlePrice($installment->getUpfront($itemPrice)) : trans('update.no') }} {{ trans('update.upfront') }}
@if($installment->upfront_type == "percent")
{{ $installment->upfront }}%
@endif
{{-- Other Step --}} @foreach($installment->steps as $installmentStep)
{{ handlePrice($installmentStep->getPrice($itemPrice)) }} {{ trans('update.after_n_days', ['days' => $installmentStep->deadline]) }}
@if($installmentStep->amount_type == "percent")
{{ $installmentStep->amount }}%
@endif
@endforeach