@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 {{-- ============================================================ OBEN: Teilnahme (nicht bestaetigt) oder Kopf mit Stand (bestaetigt) ============================================================ --}} @if ($hasConfirmedParticipation)
{{ $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') }}
@if ($incentive->getLang('terms'))
{!! $incentive->getLang('terms') !!}
@endif
@else

{{ $participant ? __('incentive.join_confirm_title') : __('incentive.join_title') }}

{{ $participant ? __('incentive.pending_confirmation_banner') : __('incentive.participate_intro') }}

{{-- Hervorhebungen: worum es geht --}}
@if ((float) $incentive->amount_per_partner > 0) {{ __('incentive.join_highlight_partner', ['amount' => \App\Services\Incentive\IncentivePayoutService::formatAmount((float) $incentive->amount_per_partner)]) }} @elseif ($incentive->points_partner_onetime > 0) {{ __('incentive.join_highlight_points', ['points' => number_format($incentive->points_partner_onetime, 0, ',', '.')]) }} @endif @foreach ($incentive->rankBonuses() as $bonusRank => $bonusAmount) {{ __('incentive.join_highlight_rank', ['amount' => \App\Services\Incentive\IncentivePayoutService::formatAmount($bonusAmount), 'n' => $bonusRank]) }} @endforeach @if ($incentive->usesAbos() && $incentive->points_abo_onetime > 0) {{ __('incentive.join_highlight_abo', ['points' => number_format($incentive->points_abo_onetime, 0, ',', '.')]) }} @endif {{ $incentive->qualification_start->format('d.m.Y') }} bis {{ $incentive->qualification_end->format('d.m.Y') }}
@if ($participant)
@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)
{{ $participantPayout['confirmed'] ? __('incentive.payout_so_far') : __('incentive.payout_after_confirmation') }}
{{ \App\Services\Incentive\IncentivePayoutService::formatAmount($participantPayout['total']) }}
@endif
@endif
@if ($incentive->isActive()) @if (!empty($participateHasTrackableAbos))
{{ __('incentive.participate_abo_hint') }}
@endif
@csrf
@else

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

@endif @if ($incentive->getLang('terms')) @endif
@if ($incentive->getLang('terms'))
{!! $incentive->getLang('terms') !!}
@endif
@endif
{{-- ===== HERO ===== --}} @if ($incentive->image)
{{ $incentive->name }}
{{ __('incentive.section_period') }}: {{ $incentive->qualification_start->format('d.m.') }} – {{ $incentive->qualification_end->format('d.m.Y') }}

{{ $incentive->name }}

@if ($incentive->getLang('subtitle'))

{{ $incentive->getLang('subtitle') }}

@endif
@else

{{ $incentive->name }}

@if ($incentive->getLang('subtitle'))

{{ $incentive->getLang('subtitle') }}

@endif
@endif {{-- ===== INTRO-TEXT ===== --}} @if ($incentive->getLang('description'))
{!! $incentive->getLang('description') !!}
@else

{{ __('incentive.teaser_intro_bold') }} {{ __('incentive.teaser_intro_text') }}

{{ __('incentive.teaser_intro_cta', ['n' => $incentive->max_winners]) }}

@endif {{-- ===== 3 INFO-KARTEN ===== --}}
{{-- 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.teaser_until') }} {{ $incentive->calculation_end->format('d.m.Y') }}
@if ($incentive->hasCashPayout() && !$incentive->hasMinimumRequirements()) {{-- Praemie (Recruiting-Challenge) --}}
{{ __('incentive.payout_tile_title') }}
@if ((float) $incentive->amount_per_partner > 0)
{{ \App\Services\Incentive\IncentivePayoutService::formatAmount((float) $incentive->amount_per_partner) }}
{{ __('incentive.payout_per_partner_label') }}
@endif @if ($incentive->rankBonuses() !== [] && !$incentive->isCashChallenge())
{{ __('incentive.payout_top_bonus_title', ['n' => count($incentive->rankBonuses())]) }} @foreach ($incentive->rankBonuses() as $bonusRank => $bonusAmount)
{{ __('incentive.payout_rank_label', ['n' => $bonusRank]) }}: {{ \App\Services\Incentive\IncentivePayoutService::formatAmount($bonusAmount) }}
@endforeach
@endif
@else {{-- Mindestqualifikation --}}
{{ __('incentive.section_min_qual') }}
{{ $incentive->min_direct_partners }}
{{ __('incentive.min_partners_label') }}
{{ $incentive->min_customer_abos }}
{{ __('incentive.min_abos_label') }}
@endif @if ($incentive->isCashChallenge()) {{-- Top 3 Bonus (Recruiting-Challenge) --}}
{{ __('incentive.payout_bonus_tile_title', ['n' => max(count($incentive->rankBonuses()), $incentive->max_winners)]) }}
@forelse ($incentive->rankBonuses() as $bonusRank => $bonusAmount)
{{ \App\Services\Incentive\IncentivePayoutService::formatAmount($bonusAmount) }} {{ __('incentive.payout_rank_label', ['n' => $bonusRank]) }}
@empty {{ __('incentive.ranking_winners_hint', ['n' => $incentive->max_winners]) }} @endforelse
@else {{-- Punkte-System --}}
{{ __('incentive.section_points') }}
{{ number_format($incentive->points_partner_onetime, 0, ',', '.') }} {{ __('incentive.points_short') }} {{ __('incentive.points_partners_title') }}
@if ($incentive->usesAbos())
{{ number_format($incentive->points_abo_onetime, 0, ',', '.') }} {{ __('incentive.points_short') }} {{ __('incentive.points_abos_title') }}
@endif
@endif
{{-- ===== SO FUNKTIONIERT DIE CHALLENGE (Geldpraemie) / PUNKTE-DETAIL ===== --}} @if ($incentive->isCashChallenge())

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

{{ __('incentive.payout_tile_title') }}
{{ \App\Services\Incentive\IncentivePayoutService::formatAmount((float) $incentive->amount_per_partner) }} {{ __('incentive.payout_per_partner_label') }}
  • {{ __('incentive.points_starter_package_label') }}
  • @if ($incentive->rankBonuses() !== [])
  • {{ __('incentive.payout_top_bonus_text', ['n' => count($incentive->rankBonuses()), 'list' => collect($incentive->rankBonuses())->map(fn ($amount, $rank) => __('incentive.payout_rank_label', ['n' => $rank]).' '.\App\Services\Incentive\IncentivePayoutService::formatAmount($amount))->implode(', ')]) }}
  • @endif
  • {{ $incentive->ranksBySalesOfNewPartners() ? __('incentive.payout_ranking_sales_hint') : __('incentive.payout_ranking_hint') }}
@else {{-- ===== PUNKTE-DETAIL ===== --}}

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

{{ __('incentive.points_partners_title') }}
{{ number_format($incentive->points_partner_onetime, 0, ',', '.') }} {{ __('incentive.points_short') }}
  • {{ __('incentive.teaser_partner_onetime_text') }}
  • {{ __('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.teaser_abo_onetime_text') }}
  • {{ __('incentive.points_abo_direct') }}
  • @if ($incentive->includesSalesPoints())
  • {{ __('incentive.points_abo_boost') }}
  • @endif
@endif
@endif {{-- ===== BILDERGALERIE ===== --}} @if (count($galleryImages) > 0) {{-- Lightbox --}} @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 @section('scripts') @if (count($galleryImages) > 0) @endif @endsection