@php use App\Enums\SchemeStatus as SStatus; use App\Enums\InterestRateType as IRType; @endphp
@if(!blank($schemes)) @foreach($schemes as $scheme)
{{ data_get($scheme, 'name') }} {{ ucfirst(data_get($scheme, 'status')) }}

{{ data_get($scheme, 'desc') }}

{{ data_get($scheme, 'rate') }}@if(data_get($scheme, 'rate_type') == IRType::PERCENT) % @else {{ base_currency() }} @endif
{{ __('Interest (:type)', ['type' => (data_get($scheme, 'rate_type') == IRType::PERCENT) ? 'P' : 'F']) }}
{{ data_get($scheme, 'term') }}
{{ __(':unit (Term)', ['unit' => ucfirst(data_get($scheme, 'term_type'))]) }}
{{ __('Capital Return') }} @if(!empty(data_get($scheme, 'capital'))) {{ __('Full / End of Term') }} @else {{ __('Partial / Each Term') }} @endif
{{ __('Profit Adjust') }} {{ __(":Type (:term)", ['type' => ucfirst(data_get($scheme, 'calc_period')), 'term' => str_replace('_', ' ', ucfirst(data_get($scheme, 'payout'))) ]) }}
@if(!empty(data_get($scheme, 'is_fixed')))
{{ __('Amount') }} {{ money(data_get($scheme, 'amount'), base_currency()) }}
{{ __('Investment') }} {{ __('Fixed Type') }}
@else
{{ __('Minimum') }} {{ money(data_get($scheme, 'amount'), base_currency()) }}
{{ __('Maximum') }} {{ money(data_get($scheme, 'maximum'), base_currency()) }}
@endif
@endforeach @endif