@extends('layouts.layout-2') @section('styles') @endsection @section('content') {{-- Flash-Nachrichten --}} @if (Session::has('alert-success'))
{{ Session::get('alert-success') }}
@endif @if (Session::has('alert-error'))
{{ Session::get('alert-error') }}
@endif @if (Session::has('alert-info'))
{{ Session::get('alert-info') }}
@endif @if ($hasConfirmedParticipation) {{-- ============================================================ ANSICHT: TEILNEHMER – kompakter Header, Info eingeklappt ============================================================ --}}
{{ $incentive->name }}
@if ($participant->rank)
{{ __('incentive.your_rank') }}
{{ $participant->rank }}
@endif
{{ $incentive->ranksByPartnerCount() ? __('incentive.new_partners_short') : __('incentive.total_points') }}
{{ number_format($participant->total_points, 0, ',', '.') }}
@if ($participantPayout)
{{ __('incentive.payout_so_far') }}
{{ \App\Services\Incentive\IncentivePayoutService::formatAmount($participantPayout['total']) }}
@endif
@if ($participant->is_qualified) {{ __('incentive.qualified') }} @else {{ __('incentive.not_yet_qualified') }} @endif
{{ __('incentive.my_details') }}
{{-- Eingeklappter Info-Bereich --}}
@if ($incentive->image)
{{ $incentive->name }}
@endif @if ($incentive->getLang('description'))
{!! $incentive->getLang('description') !!}
@endif
{{-- Qualifikationszeitraum --}}
{{ __('incentive.section_period') }}
  • {{ __('incentive.qualification_period') }}: {{ $incentive->qualification_start->format('d.m.Y') }} – {{ $incentive->qualification_end->format('d.m.Y') }}
  • {{ __('incentive.calculation_period') }}: {{ __('incentive.calculation_period_hint', ['date' => $incentive->calculation_end->format('d.m.Y')]) }}
@if ($incentive->hasCashPayout() && !$incentive->hasMinimumRequirements()) @include('user.incentive._payout_tile', ['incentive' => $incentive]) @else {{-- Mindestqualifikation --}}
{{ __('incentive.section_min_qual') }}

{{ __('incentive.min_qual_intro') }}

  • {{ $incentive->min_direct_partners }} {{ __('incentive.min_partners_label') }}
  • {{ $incentive->min_customer_abos }} {{ __('incentive.min_abos_label') }}

{{ __('incentive.min_qual_ranking_hint') }}

@endif {{-- Punkte-System --}}
{{ __('incentive.section_points') }}
{{ __('incentive.points_partners_title') }}
{{ number_format($incentive->points_partner_onetime, 0, ',', '.') }} {{ __('incentive.points_short') }}
  • {{ __('incentive.points_onetime_label') }}
  • {{ __('incentive.points_starter_package_label') }}
  • @if ($incentive->includesSalesPoints())
  • {{ __('incentive.points_partner_boost') }}
  • @endif @include('user.incentive._payout_bullets', ['incentive' => $incentive])
@if ($incentive->usesAbos())
{{ __('incentive.points_abos_title') }}
{{ number_format($incentive->points_abo_onetime, 0, ',', '.') }} {{ __('incentive.points_short') }}
  • {{ __('incentive.points_onetime_label') }}
  • {{ __('incentive.points_abo_direct') }}
  • @if ($incentive->includesSalesPoints())
  • {{ __('incentive.points_abo_boost') }}
  • @endif
@endif
@if ($incentive->getLang('terms'))
{!! $incentive->getLang('terms') !!}
@endif
@else {{-- ============================================================ ANSICHT: NOCH KEINE ZUSTIMMUNG (Punkte laufen) ODER KEIN TEILNEHMER ============================================================ --}} @if ($participant)
{{ $incentive->name }}
@if ($participant->rank)
{{ __('incentive.your_rank') }}
{{ $participant->rank }}
@endif
{{ $incentive->ranksByPartnerCount() ? __('incentive.new_partners_short') : __('incentive.total_points') }}
{{ number_format($participant->total_points, 0, ',', '.') }}
@if ($participantPayout)
{{ __('incentive.payout_so_far') }}
{{ \App\Services\Incentive\IncentivePayoutService::formatAmount($participantPayout['total']) }}
@endif
@if ($participant->is_qualified) {{ __('incentive.qualified') }} @else {{ __('incentive.not_yet_qualified') }} @endif
{{ __('incentive.pending_confirmation_banner') }}
@endif @if ($incentive->image)
{{ $incentive->name }}
@endif

{{ $incentive->name }}

@if ($incentive->getLang('description'))
{!! $incentive->getLang('description') !!}
@endif
{{-- Qualifikationszeitraum --}}
{{ __('incentive.section_period') }}
  • {{ __('incentive.qualification_period') }}: {{ $incentive->qualification_start->format('d.m.Y') }} – {{ $incentive->qualification_end->format('d.m.Y') }}
  • {{ __('incentive.calculation_period') }}: {{ __('incentive.calculation_period_hint', ['date' => $incentive->calculation_end->format('d.m.Y')]) }}
@if ($incentive->hasCashPayout() && !$incentive->hasMinimumRequirements()) @include('user.incentive._payout_tile', ['incentive' => $incentive]) @else {{-- Mindestqualifikation --}}
{{ __('incentive.section_min_qual') }}

{{ __('incentive.min_qual_intro') }}

  • {{ $incentive->min_direct_partners }} {{ __('incentive.min_partners_label') }}
  • {{ $incentive->min_customer_abos }} {{ __('incentive.min_abos_label') }}

{{ __('incentive.min_qual_ranking_hint') }}

@endif {{-- Punkte-System --}}
{{ __('incentive.section_points') }}
{{ __('incentive.points_partners_title') }}
{{ number_format($incentive->points_partner_onetime, 0, ',', '.') }} {{ __('incentive.points_short') }}
  • {{ __('incentive.points_onetime_label') }}
  • {{ __('incentive.points_starter_package_label') }}
  • @if ($incentive->includesSalesPoints())
  • {{ __('incentive.points_partner_boost') }}
  • @endif @include('user.incentive._payout_bullets', ['incentive' => $incentive])
@if ($incentive->usesAbos())
{{ __('incentive.points_abos_title') }}
{{ number_format($incentive->points_abo_onetime, 0, ',', '.') }} {{ __('incentive.points_short') }}
  • {{ __('incentive.points_onetime_label') }}
  • @if ($incentive->includesSalesPoints())
  • {{ __('incentive.points_abo_boost') }}
  • @endif
@endif
{{ __('incentive.participate_title') }}
@if ($incentive->isActive())

{{ __('incentive.participate_intro') }}

@if (!empty($participateHasTrackableAbos))
{{ __('incentive.participate_abo_hint') }}
@endif
@csrf
@else

{{ __('incentive.not_active') }}

@endif
@if ($incentive->getLang('terms'))
{!! $incentive->getLang('terms') !!}
@endif
@endif {{-- ============================================================ LIVE-RANKING – immer sichtbar ============================================================ --}}
{{ __('incentive.section_ranking') }} {{ __('incentive.ranking_all_active') }}
{{ __('incentive.ranking_winners_hint', ['n' => $incentive->max_winners]) }}
{{ __('incentive.ranking_extended_hint', ['n' => $incentive->max_winners]) }}
{{ __('incentive.ranking_anonymous_hint') }}
@if ($isVipView)
{{ __('incentive.vip_view_notice') }}
@endif @if ($ranking->isEmpty())
{{ __('incentive.no_participants_with_points') }}
@else
@if (!$incentive->ranksByPartnerCount()) @endif @if ($incentive->usesAbos()) @endif @if ($incentive->hasCashPayout()) @endif @foreach ($ranking as $p) @php $isWinner = $p->is_qualified && $p->rank && $p->rank <= $incentive->max_winners; $isMe = $participant && $p->id === $participant->id; @endphp @if (!$incentive->ranksByPartnerCount()) @endif @if ($incentive->usesAbos()) @endif @if ($incentive->hasCashPayout()) @php $rowPayout = $rankingPayouts[$p->id] ?? null; @endphp @endif @endforeach
{{ __('incentive.rank') }} {{ __('incentive.consultant') }} {{ $incentive->ranksByPartnerCount() ? __('incentive.new_partners_short') : __('incentive.total_points') }}{{ __('incentive.partners') }}{{ __('incentive.abos') }}{{ __('incentive.payout_column') }}{{ __('incentive.status') }}
@if ($isWinner && $p->rank && $p->rank <= 3) @elseif ($p->rank) {{ $p->rank }} @else — @endif @if ($p->accepted_terms_at || $isVipView) @if ($isVipView) @if ($p->accepted_terms_at)   @else   @endif @endif @if ($p->user && $p->user->account) {{ $p->user->account->first_name }} {{ $p->user->account->last_name }} @else {{ $p->user->email ?? 'N/A' }} @endif @else {{ __('incentive.anonymous_consultant') }} @endif @if ($isMe) {{ __('incentive.you') }} @endif {{ number_format($p->total_points, 0, ',', '.') }} {{ $p->qualified_partners }}@if ($incentive->min_direct_partners > 0)/{{ $incentive->min_direct_partners }}@endif @if ($incentive->min_direct_partners > 0 && $p->qualified_partners >= $incentive->min_direct_partners) ✓ @endif {{ $p->qualified_abos }}@if ($incentive->min_customer_abos > 0)/{{ $incentive->min_customer_abos }}@endif @if ($incentive->min_customer_abos > 0 && $p->qualified_abos >= $incentive->min_customer_abos) ✓ @endif @if ($rowPayout && $rowPayout['total'] > 0) {{ \App\Services\Incentive\IncentivePayoutService::formatAmount($rowPayout['total']) }} @else — @endif @if ($isWinner) {{ __('incentive.winner') }} @elseif ($p->is_qualified) {{ __('incentive.qualified') }} @else {{ __('incentive.open') }} @endif
@endif @if ($ranking->hasPages())
{{ $ranking->links() }}
@endif
@endsection