Edit Product: {{ $product->name }} @php $variationGalleryOptions = $product->images ->where('is_primary', false) ->map(fn ($img) => [ 'id' => $img->id, 'path' => $img->image_path, 'url' => asset('storage/' . $img->image_path), ]) ->values(); @endphp
@csrf @method('PUT')

Edit Product

Modify existing product details, pricing and stock.

Cancel

General Information

@error('name')

{{ $message }}

@enderror
@error('slug')

{{ $message }}

@enderror
@error('sku')

{{ $message }}

@enderror

Organization

Published
In Stock

Product Description

@error('description')

{{ $message }}

@enderror

Media Management

Upload Main

Add Images

Attributes & SEO

Select Sizes to Add

{{-- Desktop + mobile both stay in DOM (reliable submit). onsubmit strips name= from the hidden breakpoint so only one set posts (avoids PHP last-key overwrite + empty x-if race). --}}
No variations added yet. Click 'Add Row' to start.

This button submits the entire product—name, slug, categories, description, featured & gallery images, SEO, and all variations (stock, prices, images). Same as the Update Product button at the top. Refreshing or leaving without submitting discards all unsaved changes.

@push('scripts') @endpush