@if (isset($activeIncentive) && $activeIncentive)
{{-- 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 {{-- 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 --}}
@endif