@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.total_points') }}
{{ number_format($participant->total_points, 0, ',', '.') }}
@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')]) }}
{{-- 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') }}

{{-- 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') }}
  • {{ __('incentive.points_partner_boost') }}
{{ __('incentive.points_abos_title') }}
{{ number_format($incentive->points_abo_onetime, 0, ',', '.') }} {{ __('incentive.points_short') }}
  • {{ __('incentive.points_onetime_label') }}
  • {{ __('incentive.points_abo_direct') }}
  • {{ __('incentive.points_abo_boost') }}
@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.total_points') }}
{{ number_format($participant->total_points, 0, ',', '.') }}
@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')]) }}
{{-- 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') }}

{{-- 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_partner_boost') }}
{{ __('incentive.points_abos_title') }}
{{ number_format($incentive->points_abo_onetime, 0, ',', '.') }} {{ __('incentive.points_short') }}
  • {{ __('incentive.points_onetime_label') }}
  • {{ __('incentive.points_abo_boost') }}
{{ __('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
@foreach ($ranking as $p) @php $isWinner = $p->is_qualified && $p->rank && $p->rank <= $incentive->max_winners; $isMe = $participant && $p->id === $participant->id; @endphp @endforeach
{{ __('incentive.rank') }} {{ __('incentive.consultant') }} {{ __('incentive.total_points') }} {{ __('incentive.partners') }} {{ __('incentive.abos') }} {{ __('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 }}/{{ $incentive->min_direct_partners }} @if ($p->qualified_partners >= $incentive->min_direct_partners) @endif {{ $p->qualified_abos }}/{{ $incentive->min_customer_abos }} @if ($p->qualified_abos >= $incentive->min_customer_abos) @endif @if ($isWinner) {{ __('incentive.winner') }} @elseif ($p->is_qualified) {{ __('incentive.qualified') }} @else {{ __('incentive.open') }} @endif
@endif @if ($ranking->hasPages())
{{ $ranking->links() }}
@endif
@endsection