{{-- Modal de selección de tags --}}

Personaliza tu producto

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)
@foreach($products->firstWhere('id', $selectedProductId)->tags->where('type', 'size') as $tag) @endforeach
@endif {{-- Cantidad --}} @if($products->firstWhere('id', $selectedProductId)->tags->where('type', 'quantity')->count() > 0)
@foreach($products->firstWhere('id', $selectedProductId)->tags->where('type', 'quantity') as $tag) @endforeach
@endif {{-- Forma --}} @if($products->firstWhere('id', $selectedProductId)->tags->where('type', 'shape')->count() > 0)
@foreach($products->firstWhere('id', $selectedProductId)->tags->where('type', 'shape') as $tag) @endforeach
@endif @endif
{{-- Botones de acción --}}