@if (isset($activeIncentive) && $activeIncentive) @php $hasConfirmedDash = $incentiveParticipant && $incentiveParticipant->accepted_terms_at !== null; @endphp
{{-- Hero-Bild mit Overlay --}} @if ($activeIncentive->image)
{{ $activeIncentive->name }}
Incentive VIP

{{ $activeIncentive->getLang('name') ?: $activeIncentive->name }}

@if ($activeIncentive->getLang('subtitle'))

{{ $activeIncentive->getLang('subtitle') }}

@endif
@else
Incentive VIP

{{ $activeIncentive->getLang('name') ?: $activeIncentive->name }}

@if ($activeIncentive->getLang('subtitle'))

{{ $activeIncentive->getLang('subtitle') }}

@endif
@endif {{-- Inhaltsbereich --}}
{{-- Status-Leiste (nur fuer Teilnehmer) --}} @if ($incentiveParticipant)
@if ($incentiveParticipant->rank)
{{ $incentiveParticipant->rank }} {{ __('incentive.your_rank') }}
@endif
{{ number_format($incentiveParticipant->total_points, 0, ',', '.') }} {{ __('incentive.points_short') }}
@if ($incentiveParticipant->is_qualified) {{ __('incentive.qualified') }} @else {{ __('incentive.open') }} @endif
@endif {{-- Notice: Teilnahme noch nicht bestÃĪtigt --}} @if (!$hasConfirmedDash)
@if ($incentiveParticipant) {{ __('incentive.dash_notice_unconfirmed_title') }}

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

@else {{ __('incentive.dash_notice_unregistered_title') }}

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

@endif @if ($activeIncentive->isActive()) @endif
@endif {{-- Bilder-Leiste --}} @php $dashGallery = []; $galleryDir = public_path('img/incentive'); if (is_dir($galleryDir)) { $galleryFiles = glob($galleryDir . '/*.{jpg,jpeg,png,webp}', GLOB_BRACE) ?: []; $heroImg = $activeIncentive->image; foreach ($galleryFiles as $gf) { $bn = basename($gf); if ($bn !== $heroImg) { $dashGallery[] = 'img/incentive/' . $bn; } } sort($dashGallery); $dashGallery = array_slice($dashGallery, 0, 4); } @endphp @if (count($dashGallery) > 0) @endif {{-- Buttons --}}
{{-- Teilnahme-Modal --}} @if (!$hasConfirmedDash && $activeIncentive->isActive()) @endif @endif