reviews photos clickable and contact form functionality

This commit is contained in:
elvira
2026-09-24 21:03:59 +03:00
parent e28faea546
commit 540da1af24
12 changed files with 223 additions and 14 deletions
@@ -70,8 +70,15 @@
</div>
<div class="flex min-w-0 flex-1 flex-col gap-1">
{{-- Linked only while the product still exists and is published;
otherwise the name stays plain text (the order keeps it). --}}
@php($lineProduct = $line->purchasable?->product)
<p class="font-bold">
{{ $line->description }}
@if ($lineProduct?->status === 'published')
<a href="{{ route('product.show', ['id' => $lineProduct->id]) }}" class="underline hover:no-underline">{{ $line->description }}</a>
@else
{{ $line->description }}
@endif
<span class="font-normal">&times; {{ $line->quantity }}</span>
</p>