@use('App\Modules\Catalog\Models\Product') @php $isNew = ! $product->exists; $canSubmit = $isNew || in_array($product->status, ['draft', 'rejected'], true); $gallery = array_values((array) ($product->gallery ?? [])); $kept = array_values(array_intersect((array) old('keep_images', $gallery), $gallery)); $highlights = implode("\n", (array) ($product->highlights ?? [])); $details = collect((array) ($product->details ?? []))->map(fn ($v, $k) => "{$k}: {$v}")->implode("\n"); $tags = (array) old('tags', $product->tags ?? []); $categoryOptions = collect($categories)->mapWithKeys(fn ($c) => [$c['slug'] => $c['name']])->all(); @endphp All products @if (! $isNew && $product->isVisible()) View in store @endif @if ($product->status === 'rejected' && $product->admin_note)
Changes needed: {{ $product->admin_note }}
Fix this, then resubmit.
@elseif ($product->status === 'pending')
This product is being reviewed. You can still make changes.
@endif
@csrf @unless ($isNew) @method('PUT') @endunless

Basics

Photos

{{ count($kept) }} / {{ $maxImages }}

The first photo is the cover. Square photos of at least 1000 × 1000 px look best; a PNG cut-out on a transparent background looks best of all. JPG, PNG or WebP up to 5 MB each: we convert them to WebP for fast pages.

@foreach ($kept as $i => $path)
Photo {{ $i + 1 }}
@endforeach
@error('images')
{{ $message }}
@enderror @foreach ($errors->get('images.*') as $messages)
{{ $messages[0] }}
@endforeach
@php $optOn = (bool) old('has_options', ! empty($product->option_names)); $optNames = old('option_names', $product->option_names ?: ['Size', '']); $optRows = old('variants', $product->exists ? $product->variants->map(fn ($v) => ['id' => $v->id, 'values' => array_values((array) $v->options), 'price' => (float) $v->price, 'mrp' => (float) $v->mrp, 'stock' => $v->stock, 'sku' => $v->sku])->all() : []); @endphp

Highlights & details

@unless ($isNew)
Status {{ $product->statusLabel() }}
@endunless @if ($canSubmit) @if ($needsReview)

Our team checks new products, usually within one working day. You'll get an email when it's live.

@endif @else

Changes to live products show in the store straight away.

@endif

Pricing

Prices include GST. Customers see the MRP struck through when it's higher.

Inventory & shipping

@if ($pickups->count() > 1) @endif

Stock goes down automatically with every order and comes back if an order is cancelled.

Good for

@foreach (Product::SELLER_TAGS as $key => $label)
@endforeach

"New" and "Under ₹999" badges are added automatically.