From 0a98740877ff9ceaf9f0be41c5fb09496c7a2a79 Mon Sep 17 00:00:00 2001 From: Marco Wende Date: Mon, 22 Jun 2026 07:06:08 +0200 Subject: [PATCH] Fix product main image: use @php + @json to avoid quote conflicts in Alpine x-data Co-Authored-By: Claude Sonnet 4.6 --- resources/views/shop/products/show.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/shop/products/show.blade.php b/resources/views/shop/products/show.blade.php index 5576412..c19e0b5 100644 --- a/resources/views/shop/products/show.blade.php +++ b/resources/views/shop/products/show.blade.php @@ -1,7 +1,8 @@ @extends('layouts.shop') @section('title', $product->name) @section('content') -
+@php $firstImageUrl = $product->images->count() ? asset('storage/'.$product->images->first()->path) : ''; @endphp +
{{-- Bilder --}}