@extends('layouts.admin') @section('title', 'Edit Product - ' . $product->name) @section('content')

Edit Product

{{ $supermarket->name }} - {{ $product->name }}

@if(session('success')) @endif @if(session('error')) @endif
Product Information
@csrf @method('PUT')
Basic Information
@error('product_name')
{{ $message }}
@enderror
@error('brand')
{{ $message }}
@enderror
@error('sku')
{{ $message }}
@enderror Unique identifier for this product
@error('barcode')
{{ $message }}
@enderror
@error('main_category_id')
{{ $message }}
@enderror Choose the broad category type
@if($product->mainCategory && $product->mainCategory->image) {{ $product->mainCategory->name }} {{ $product->mainCategory->name }} @else
No category @endif
@error('sub_category_id')
{{ $message }}
@enderror Choose specific product type
@if($product->subCategory && $product->subCategory->image) {{ $product->subCategory->name }} {{ $product->subCategory->name }} @else
No sub-category @endif
@error('aisle_id')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
Pricing Information (AED)
Price Types Explained:
  • Cost Price: The price you paid to purchase/acquire this product
  • Selling Price: The regular retail price customers pay
  • Sale Price: Special promotional/discounted price (optional)
AED @error('cost_price')
{{ $message }}
@enderror
Your purchase/wholesale price
AED @error('selling_price')
{{ $message }}
@enderror
Regular retail price
AED @error('sale_price')
{{ $message }}
@enderror
Special promotional price (optional)
on_sale) ? 'checked' : '' }}>
Inventory Management
@error('stock_quantity')
{{ $message }}
@enderror Current units in stock
@error('minimum_stock')
{{ $message }}
@enderror Alert when stock falls below this level
@error('unit')
{{ $message }}
@enderror
Category-Specific Details Additional fields based on product category
Product Images
@error('product_image')
{{ $message }}
@enderror Max size: 2MB. Supported: JPG, PNG, GIF. Leave empty to keep current image.
@error('additional_images')
{{ $message }}
@enderror Select up to 4 additional images. Max size: 2MB each.
Current Images:
@if($product->image)
{{ $product->name }} Main
@endif @if($product->additional_images) @foreach($product->additional_images as $index => $image)
{{ $product->name }} - {{ $index + 1 }} {{ $index + 1 }}
@endforeach @endif @if(!$product->image && !$product->additional_images)
No images currently uploaded for this product
@endif
is_active) ? 'checked' : '' }}>
is_featured) ? 'checked' : '' }}>
Cancel
@endsection