@php // Mehrere aktive Incentives parallel (E1): Fallback auf die alte Einzelvariable. $dashIncentives = isset($activeIncentives) && $activeIncentives ? $activeIncentives : collect(isset($activeIncentive) && $activeIncentive ? [$activeIncentive] : []); @endphp @foreach ($dashIncentives as $activeIncentive) @php $incentiveParticipant = isset($incentiveParticipants) && $incentiveParticipants ? $incentiveParticipants->get($activeIncentive->id) : ($incentiveParticipant ?? null); $hasConfirmedDash = $incentiveParticipant && $incentiveParticipant->accepted_terms_at !== null; $dashSuffix = '-' . $activeIncentive->id; $dashPayout = $activeIncentive->hasCashPayout() && $incentiveParticipant ? (new \App\Services\Incentive\IncentivePayoutService)->forParticipant($activeIncentive, $incentiveParticipant) : null; @endphp