@extends('layouts.app') @section('content')

Edit Product - {{ $product->name }}

@if($product->website->subdomain) View Product @endif Back to Products
@if(session('success')) @endif
@csrf @method('PUT')
Basic Information
@error('name')
{{ $message }}
@enderror
@error('sku')
{{ $message }}
@enderror
Used in the product URL
@error('slug')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
Product Images
@if($product->images && count($product->images) > 0)
@foreach($product->images as $index => $image)
Product Image
@if($index === 0) Main @endif
@endforeach
@endif
Upload Product Images

Drag and drop images here or click to browse

Pricing & Inventory
@error('price')
{{ $message }}
@enderror
Leave empty if not on sale
@error('sale_price')
{{ $message }}
@enderror
@error('stock_quantity')
{{ $message }}
@enderror
@error('weight')
{{ $message }}
@enderror
SEO Settings
Leave empty to use product name. Recommended: 50-60 characters
@error('meta_title')
{{ $message }}
@enderror
Leave empty to auto-generate from description. Recommended: 150-160 characters
@error('meta_description')
{{ $message }}
@enderror
Comma-separated keywords (optional)
@error('meta_keywords')
{{ $message }}
@enderror
Product Status
is_active) ? 'checked' : '' }}>
Inactive products won't be visible to customers
featured) ? 'checked' : '' }}>
Featured products appear prominently in your store
Lower numbers appear first
@error('sort_order')
{{ $message }}
@enderror
Categories
@php $categories = $website->productCategories()->active()->get(); $selectedCategories = old('categories', $product->categories->pluck('id')->toArray()); @endphp @if($categories->count() > 0) @foreach($categories as $category)
id, $selectedCategories) ? 'checked' : '' }}>
@endforeach @else

No categories available. Create Category

@endif
Product Stats

{{ $product->variations->count() }}

Variations

{{ $product->total_stock }}

Total Stock
@if($product->orderItems->count() > 0)

{{ $product->orderItems->sum('quantity') }}

Total Sold
@endif
Back to Products
@csrf @method('DELETE')
@endsection @push('styles') @endpush @push('scripts') @endpush