@extends('layouts.layout-2') @section('content')

{{ $incentive->name }} - {{ __('incentive.my_calculation') }} {{ __('incentive.back_to_ranking') }}

{{-- Zusammenfassung --}}
{{ __('incentive.total_points') }}

{{ number_format($participant->total_points, 0, ',', '.') }}

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

{{ $participant->rank ?? '-' }}

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

{{ $participant->qualified_partners }}/{{ $incentive->min_direct_partners }}

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

{{ $participant->qualified_abos }}/{{ $incentive->min_customer_abos }}

{{-- Sektion A: Neupartner-Punkte --}}
{{ __('incentive.section_partners') }}
@include('partials.incentive._source_table', [ 'sources' => $partner_sources, 'type' => 'partner', 'label_header' => __('incentive.new_partner'), 'date_header' => __('incentive.entry_date'), 'empty_message' => __('incentive.no_partners_yet'), ])
{{-- Sektion B: Kundenabo-Punkte --}}
{{ __('incentive.section_abos') }}
@include('partials.incentive._source_table', [ 'sources' => $abo_sources, 'type' => 'abo', 'label_header' => __('incentive.customer_abo'), 'date_header' => __('incentive.abo_date'), 'empty_message' => __('incentive.no_abos_yet'), ])
{{-- Gesamtpunkte --}}

{{ __('incentive.total_points') }}: {{ number_format($participant->total_points, 0, ',', '.') }}

@if ($participant->is_qualified) {{ __('incentive.qualified') }} @if ($participant->isWinner()) {{ __('incentive.winner') }} @endif @else {{ __('incentive.not_yet_qualified') }} @endif
@endsection