@extends('layouts.layout-2') @section('content')
@if(isset($error))
{{ $error }}
@endif

{{ __('marketingplan.title') }}

{{ __('marketingplan.subtitle') }}

@if($currentUser && $currentLevel)
{{ __('marketingplan.current_level') }} {{ $currentLevel->name }}
@endif
@if($userLevels->count() > 0)
@foreach($userLevels as $index => $level)
{{ $level->pos }} {{ $level->name }}
@if($currentUser && $currentLevel && $currentLevel->id == $level->id) @elseif($currentUser && $currentLevel && $level->pos == $currentLevel->pos + 1) @endif
{{ __('marketingplan.qualification') }}
{{ formatNumber($level->qual_kp, 0) }}
{{ __('marketingplan.kp_points') }}
{{ formatNumber($level->qual_pp, 0) }}
{{ __('marketingplan.tp_points') }}
{{ __('marketingplan.provisions') }}
{{ $level->margin }}%
{{ __('marketingplan.standard') }}
{{ $level->margin_shop }}%
{{ __('marketingplan.shop') }}
@if($level->paylines > 0)
{{ __('marketingplan.team_provisions') }}
@for($i = 1; $i <= min($level->paylines, 4); $i++) @php $lineValue = $level->{'pr_line_' . $i}; @endphp @if($lineValue > 0)
{{ $lineValue }}%
L{{ $i }}
@endif @endfor
@if($level->paylines > 4)
@for($i = 5; $i <= min($level->paylines, 8); $i++) @php $lineValue = $level->{'pr_line_' . $i}; @endphp @if($lineValue > 0)
{{ $lineValue }}%
L{{ $i }}
@endif @endfor
@endif
@endif @if($level->getFormattedGrowthBonus())
{{ __('marketingplan.growth_bonus') }}
{{ $level->getFormattedGrowthBonus() }}
@endif @if($level->next_user_level)
{{ __('marketingplan.next_level') }} {{ $level->next_user_level->name }}
@endif
@if($currentUser && $currentLevel && $currentLevel->id == $level->id) @elseif($currentUser && $currentLevel && $level->pos == $currentLevel->pos + 1) @endif
@endforeach
{{ __('marketingplan.legend') }}
  • KU {{ __('marketingplan.customer_points_full') }}
  • TP {{ __('marketingplan.team_points_full') }}
  • L1-L8 {{ __('marketingplan.team_provisions_by_lines') }}
  • % {{ __('marketingplan.provision_rates') }}
@else

{{ __('marketingplan.no_levels_available') }}

{{ __('marketingplan.no_levels_configured') }}

@endif @if(isset($performance)) @if(config('app.debug'))
{{ __('marketingplan.loading_time') }} {{ $performance['execution_time'] }}ms
@endif @endif
@endsection