mivita/resources/views/admin/incentive/_participant_details.blade.php
Kevin 11afdb11d1 Incentive: Schalter "Abos beruecksichtigen", Recruiting Challenge ohne Abos
Die Recruiting Challenge erfasste Eigen- und Kundenabos mit 0 Punkten
(Live-Kopie: 175 Eigenabos). Sie tauchten in Details und Admin auf und
brachten Berater ohne Neupartner in die Rangliste.

- incentives.include_abos (Standard an); Migration schaltet Incentives
  ohne jede Abo-Wertung aus (0 Abo-Punkte, 0 Mindestabos, ohne Umsatzpunkte)
- aus: kein Abo-Tracking in Tracker, Neuaufbau und Reparatur;
  incentive:calculate raeumt vorhandene Abo-Zeilen ab
- Admin: Checkbox im Formular, Abo-Punkte/Mindestabos werden dann auf 0
  gesetzt; Abo-Spalte und -Bereiche in Admin, Details und Teilnahme-Hinweis
  entfallen
- Seeder der Recruiting Challenge setzt den Schalter aus

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 11:37:32 +00:00

65 lines
2.7 KiB
PHP

{{-- Zusammenfassung --}}
<div class="row mb-3">
<div class="col-md-3">
<div class="card text-center bg-light">
<div class="card-body py-2">
<small class="text-muted">{{ __('incentive.total_points') }}</small>
<h4 class="mb-0 font-weight-bold">{{ number_format($participant->total_points, 0, ',', '.') }}</h4>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card text-center bg-light">
<div class="card-body py-2">
<small class="text-muted">{{ __('incentive.rank') }}</small>
<h4 class="mb-0 font-weight-bold">{{ $participant->rank ?? '-' }}</h4>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card text-center bg-light">
<div class="card-body py-2">
<small class="text-muted">{{ __('incentive.partners') }}</small>
<h4 class="mb-0 font-weight-bold {{ $participant->qualified_partners >= $incentive->min_direct_partners ? 'text-success' : 'text-danger' }}">
{{ $participant->qualified_partners }}/{{ $incentive->min_direct_partners }}
</h4>
</div>
</div>
</div>
@if ($incentive->includesAbos())
<div class="col-md-3">
<div class="card text-center bg-light">
<div class="card-body py-2">
<small class="text-muted">{{ __('incentive.abos') }}</small>
<h4 class="mb-0 font-weight-bold {{ $participant->qualified_abos >= $incentive->min_customer_abos ? 'text-success' : 'text-danger' }}">
{{ $participant->qualified_abos }}/{{ $incentive->min_customer_abos }}
</h4>
</div>
</div>
</div>
@endif
</div>
{{-- Sektion A: Neupartner-Punkte --}}
<h6 class="font-weight-bold">{{ __('incentive.section_partners') }}</h6>
<div class="mb-3">
@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'),
])
</div>
{{-- Sektion B: Kundenabo-Punkte (entfaellt bei Incentives ohne Abos) --}}
@if ($incentive->includesAbos())
<h6 class="font-weight-bold">{{ __('incentive.section_abos') }}</h6>
@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'),
])
@endif