@php($sellable = $p->isSellable()) @php($single = $p->variants->filter->isAvailable()->count() === 1 ? $p->variants->first(fn ($v) => $v->isAvailable()) : null)
{{ $p->name }} {{-- Second photo shows on hover (desktop), as on Kicks Kenya --}} @php($alt = $p->relationLoaded('images') ? $p->images->filter(fn ($i) => $i->path)->values()->get(1) : null) @if ($alt)@endif @if ($p->coming_soon) COMING SOON @elseif ($p->isSoldOut()) SOLD OUT @elseif ($p->isOnOffer()) −{{ $p->offerPercent() }}% @elseif (! empty($badge)) {{ $badge }} @endif @if ($sellable && $single) {{-- One size only: add straight from the card --}}
@csrf
@elseif ($sellable) @include('store.partials.icon', ['n' => 'plus', 'size' => 18]) @endif
{{ $p->category?->name }}@if ($p->sizeSummary()) · {{ $p->sizeSummary() }}@endif

{{ $p->name }}

@if ($p->hasPrice())
@kes($p->price)@if ($p->isOnOffer())@kes($p->compare_at_price)@endif
@else @endif