Neue Felder amount_per_partner, bonus_rank_1..3 und include_sales_points an incentives. Mit ausgeschalteten Umsatzpunkten zaehlt die Wertung nur die Einmalpunkte je Neupartner, die Rangliste entspricht damit der Anzahl Neupartner mit Starterpaket. IncentivePayoutService rechnet Neupartner mal Betrag plus Rang-Bonus fuer qualifizierte Gewinner; Admin-Detailseite bekommt Praemienspalte, Summen und XLSX-Export fuer die Auszahlung. Sidenav und Dashboard zeigen alle aktiven Incentives, damit Montenegro und die Challenge parallel laufen koennen. Teaser, Rangliste und Details zeigen bei Geldpraemie die Praemien-Kachel und "Deine Praemie bisher" und blenden Abo-Bloecke aus, wenn Abos keine Rolle spielen. Montenegro bleibt unveraendert. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
31 lines
1.7 KiB
PHP
31 lines
1.7 KiB
PHP
{{-- Praemien-Kachel einer Recruiting-Challenge (ersetzt die Mindestqualifikation, wenn keine gefordert ist). Erwartet $incentive. --}}
|
|
<div class="card inc-info-tile shadow-sm mb-4" id="incentive-payout-tile">
|
|
<div class="card-body">
|
|
<div class="d-flex align-items-start">
|
|
<div class="inc-tile-icon inc-tile-icon-plane mr-3">
|
|
<i class="ion ion-md-cash"></i>
|
|
</div>
|
|
<div>
|
|
<h6 class="font-weight-bold mb-2">{{ __('incentive.payout_tile_title') }}</h6>
|
|
<ul class="list-unstyled mb-2">
|
|
@if ((float) $incentive->amount_per_partner > 0)
|
|
<li class="mb-1">
|
|
<strong style="color: #6b7758;">{{ \App\Services\Incentive\IncentivePayoutService::formatAmount((float) $incentive->amount_per_partner) }}</strong>
|
|
{{ __('incentive.payout_per_partner_label') }}
|
|
</li>
|
|
@endif
|
|
@foreach ($incentive->rankBonuses() as $bonusRank => $bonusAmount)
|
|
<li>
|
|
<strong style="color: #6b7758;">{{ \App\Services\Incentive\IncentivePayoutService::formatAmount($bonusAmount) }}</strong>
|
|
{{ __('incentive.payout_rank_bonus_label', ['n' => $bonusRank]) }}
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
<p class="text-muted small mb-0">
|
|
<i class="ion ion-md-information-circle mr-1"></i>
|
|
{{ __('incentive.payout_ranking_hint') }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|