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

Product Details

@csrf @method('PUT') @if($errors->any())

Please fix the following errors:

    @foreach($errors->all() as $err)
  • {{ $err }}
  • @endforeach
@endif
@error('name')

{{ $message }}

@enderror
@error('slug')

{{ $message }}

@enderror
is_active) ? 'checked' : '' }} class="h-4 w-4 text-blue-600">
is_featured) ? 'checked' : '' }} class="h-4 w-4 text-blue-600">

Select one or more images (JPEG, PNG, GIF, WebP, max 5MB each). They will be added to existing images.

@error('images.*')

{{ $message }}

@enderror

MP4, MOV or WebM, max 100MB. Replaces existing video if set.

@error('video')

{{ $message }}

@enderror
@if($product->images->count() > 0)

Product Images

@foreach($product->images as $image)
Product Image @if($image->is_primary) Primary @endif
@csrf @method('DELETE')
@endforeach
@endif @if($product->video_path)

Product Video

@csrf @method('DELETE')
@endif

Product Variants

@forelse($product->variants as $variant) @empty @endforelse
Name SKU Price Stock Status Actions
{{ $variant->name }} {{ $variant->sku ?? '-' }} {{ $currency_symbol }}{{ number_format($variant->price, 2) }} {{ $variant->stock_quantity }} @if($variant->isLowStock()) (Low) @endif {{ $variant->is_active ? 'Active' : 'Inactive' }}
No variants. Add one above.
@endsection