@php $productId = $product->getKey() ?? $product->id ?? null; @endphp @if($productId)
@csrf @method('DELETE')
@endif