Selecciona las opciones para este producto:
{{-- Mostrar precio dinámico para alfajores --}}
@if($selectedProductId && $products->firstWhere('id', $selectedProductId)->es_alfajores)
Precio:
@if($selectedTags['size'] && $selectedTags['quantity'])
@if($this->currentPrice)
${{ number_format($this->currentPrice, 0, ',', '.') }}
@else
Sin precio
@endif
@else
Selecciona tamaño y cantidad
@endif
@endif
{{-- Selección de tags --}}
@if($selectedProductId)
{{-- Tamaño --}}
@if($products->firstWhere('id', $selectedProductId)->tags->where('type', 'size')->count() > 0)
@endif
{{-- Cantidad --}}
@if($products->firstWhere('id', $selectedProductId)->tags->where('type', 'quantity')->count() > 0)
@endif
{{-- Forma --}}
@if($products->firstWhere('id', $selectedProductId)->tags->where('type', 'shape')->count() > 0)
@endif
@endif
{{-- Botones de acción --}}