@vite(['resources/css/app.css', 'resources/js/app.js']) @include('admin.partials.sidebar')

Add Product

@if(session('success'))

{{ session('success') }}

@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
v.attributes[this.attributes[this.attributes.length - 1]] = ''); } }, removeAttribute(index) { const removedAttr = this.attributes[index]; this.attributes.splice(index, 1); // Remove from variations this.variations.forEach(v => delete v.attributes[removedAttr]); }, previewImages: [], selectedFiles: [], handleFileUpload(event) { const files = event.target.files; this.selectedFiles = Array.from(files); this.updatePreviews(); }, updatePreviews() { this.previewImages = this.selectedFiles.map(file => ({ name: file.name, url: URL.createObjectURL(file) })); }, removeImage(index) { this.selectedFiles.splice(index, 1); this.updateFilesInInput(); this.updatePreviews(); }, setAsDefault(index) { if (index === 0) return; const file = this.selectedFiles.splice(index, 1)[0]; this.selectedFiles.unshift(file); this.updateFilesInInput(); this.updatePreviews(); }, updateFilesInInput() { const dt = new DataTransfer(); this.selectedFiles.forEach(file => dt.items.add(file)); document.getElementById('dropzone-file').files = dt.files; }, addVariation() { let newVar = { id: Date.now(), mrp: '', sp: '', reseller_price: '', stock: 100, sku: '', attributes: {} }; // Pre-fill attributes empty this.attributes.forEach(attr => newVar.attributes[attr] = ''); this.variations.push(newVar); }, removeVariation(index) { this.variations.splice(index, 1); } }"> @csrf

Default is 1 unit.

Select or type a unit (e.g., pc, kg).

Defaults to SP if left empty. Note: This price is for wholesellers.

Breakdown: Base Price: ₹ + Tax: ₹

Alt tags will default to product name.

Return Policy

Enable if customers can return this product after delivery.

Leave empty to use global default.

Paste your custom Schema.org JSON-LD code here.

SEO Settings

0 words | 0/60 chars
0 words | 0/160 chars

Upsell Products

Products that you want to recommend as an upgrade or premium alternative.

Cross-sell Products

Products that you want to recommend as complementary items (e.g. accessories).

1. Define Attributes

Add attributes that vary between products (e.g., Size, Color).

2. Product Variations