@php $isEdit = isset($product); $disk = config('upload.disk'); $visibleBadges = ['new', 'trending', 'best_seller', 'premium', 'limited_edition', 'chefs_choice']; $existingVariantsForJs = $isEdit ? $product->variants->map(fn ($v) => [ 'key' => 'v'.$v->id, 'variant_type' => $v->variant_type, 'unit' => $v->unit, 'label' => $v->label, 'mrp' => (string) $v->mrp, 'cost_price' => $v->cost_price !== null ? (string) $v->cost_price : '', 'discount_type' => $v->discount_type, 'discount_value' => $v->discount_value !== null ? (string) $v->discount_value : '', 'is_default' => $v->is_default, 'is_active' => $v->is_active, ])->values() : collect(); @endphp
Product Info
{{-- display_on has no admin-facing consumer today (see Product model) but is a required field --}} {{-- sku has no visible edit field (auto-generated on create), but UpdateProductRequest requires it on every save --}}
@error('name')
{{ $message }}
@enderror
@error('category_id')
{{ $message }}
@enderror
Product image
Drag & drop or click to upload PNG, JPG or WEBP
@if ($isEdit && $product->image)
@endif @error('image')
{{ $message }}
@enderror
Click the + tile to add one or more images.
@error('gallery.*')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@foreach (\App\Enums\ProductBadgeEnum::options() as $value => $label) @continue(! in_array($value, $visibleBadges, true))
badges ?? []), true) ? 'checked' : '' }}>
@endforeach
@if ($isEdit)

Created by {{ $product->creator?->name ?? '—' }} on {{ $product->created_at?->format('d M Y, h:i A') }} · Last updated by {{ $product->updater?->name ?? '—' }} on {{ $product->updated_at?->format('d M Y, h:i A') }}

@endif
Pricing Info
Default Weight Unit Label MRP * Cost Price (admin only) Discount Type Discount Value Selling Price Status
@error('variants')
{{ $message }}
@enderror @error('new_images')
{{ $message }}
@enderror
At least one pricing row is required. Mark exactly one row as Default — its MRP/Selling Price becomes the product's listed price everywhere else in the store.
hide_price ?? false) ? 'checked' : '' }}>
When on, this product shows "Price Available On Enquiry" instead of MRP/offer price everywhere on the site.
SEO Settings
Cancel