Web: Boost-Platzierung auf Start- und Branchenseite ausspielen

Geboostete PMs besetzen Lead- und Top-Slots vor der Chronologie
(HomePageData/CategoryPageData ueber boosted()-Scope) und tragen das
Badge "Top-Platzierung". Abgelaufene Boosts wirken nicht.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-07-10 17:05:10 +00:00
parent 744e87d008
commit bbcdc72e2f
10 changed files with 183 additions and 19 deletions

View file

@ -1,10 +1,12 @@
@props([
'leadRelease' => null,
'sideReleases' => [],
'boostedIds' => [],
])
@php
$sideReleases = collect($sideReleases)->take(4)->values();
$boostedIds = collect($boostedIds)->all();
if ($leadRelease) {
$leadCategoryName = $leadRelease->localizedCategoryName();
@ -50,6 +52,9 @@
<div class="absolute top-6 left-6 flex gap-2">
<span class="bp-tag">{{ __('web.hero.top_story') }}</span>
@if (in_array($leadRelease->id, $boostedIds, true))
<span class="bp-tag">{{ __('web.shared.boosted_placement') }}</span>
@endif
</div>
<div class="absolute left-0 right-0 bottom-0 px-9 pb-8 pt-[60px] text-white"
@ -86,7 +91,8 @@
<div class="eyebrow muted mb-3.5">{{ __('web.hero.sidebar_title') }}</div>
@foreach ($sideReleases as $index => $release)
<x-web.focus-side-item :release="$release" :index="$index + 1" :first="$loop->first" />
<x-web.focus-side-item :release="$release" :index="$index + 1" :first="$loop->first"
:boosted="in_array($release->id, $boostedIds, true)" />
@endforeach
<x-web.ad-slot variant="sidebar" />