@php $planPhaseCounts = $plans ->map(function ($plan) { return count($plan['planPhases']); }) ->toArray(); $maxPhase = max($planPhaseCounts); @endphp
@lang('Evaluation')
  • @lang('Plan Name')
  • @lang('No. of Phase')
  • @for ($i = 0; $i < $maxPhase;)
  • @lang('Phase') {{ ++$i }} @lang('Target')
  • @endfor
  • @lang('Profit Share')
  • @lang('Maximum Daily Loss')
  • @lang('Maximum Overall Loss')
  • @lang('Leverage')
  • @lang('Conversion')
  • @lang('Registration Fee')
@foreach ($plans as $key => $plan)

@lang('Evaluation')

{{ showAmount($plan->fund, 2) }}
  • @lang('Plan Name') {{ __($plan->name) }}
  • @lang('No. of Phase') {{ $plan->planPhases->count() }}
  • @for ($currentPhase = 0; $currentPhase < $maxPhase; $currentPhase++)
  • @lang('Phase') {{ $currentPhase + 1 }} @lang('Target') @if (isset($plan->planPhases[$currentPhase]))
      @foreach ($plan->planPhases[$currentPhase]->phaseLogics as $phaseLogic)
    • {{ $phaseLogic->logicBox->name }}
    • @endforeach
    @else {{ '--' }} @endif
  • @endfor
  • @lang('Profit Share') @foreach ($plan->planPhases as $phase) @lang('P'){{ $loop->iteration }}: {{ showAmount($phase->profit, exceptZeros: true, currencyFormat: false) }}{{ !$loop->last ? '%,' : '%' }} @endforeach
  • @lang('Maximum Daily Loss') {{ showAmount($plan->max_daily_loss, 2, currencyFormat: false) }}%
  • @lang('Maximum Overall Loss') {{ showAmount($plan->max_overall_loss, 2, currencyFormat: false) }}%
  • @lang('Leverage') 1:{{ showAmount($plan->fund / $plan->price, 2, exceptZeros: true, currencyFormat: false) }}
  • @lang('Conversion') {{ $plan->conversion }} @lang('times')
  • @lang('Registration Fee') {{ showAmount($plan->price, 2) }}
@endforeach
@push('script') @endpush