{{ $product->exists ? 'Editar producto' : 'Nuevo producto' }}

@error('category_id')

{{ $message }}

@enderror
@error('title')

{{ $message }}

@enderror
@error('price')

{{ $message }}

@enderror

Imagen principal (400x450)

@if ($product->cover_image_path && ! $coverImage) @endif @if ($coverImage) @endif @error('coverImage')

{{ $message }}

@enderror

Galería (800x800)

@if ($product->exists)
@foreach ($product->images as $image) @unless (in_array($image->id, $removedImageIds))
@endunless @endforeach
@endif @error('galleryImages.*')

{{ $message }}

@enderror

Variantes

Selecciona los atributos que aplican a este producto (ej. Talla, Color). Si no seleccionas ninguno, el producto se maneja con un solo stock.

@foreach ($this->availableAttributes() as $attribute) @endforeach
@if (empty($selectedAttributeIds))
@else @foreach ($this->availableAttributes()->whereIn('id', $selectedAttributeIds) as $attribute) @endforeach @foreach ($variantRows as $index => $row) @foreach ($this->availableAttributes()->whereIn('id', $selectedAttributeIds) as $attribute) @endforeach @error("variantRows.{$index}") @enderror @endforeach
{{ $attribute->name }}SKU Stock Precio especial
{{ $message }}
@endif
Cancelar