@if($isModal ?? false)
@error('name')
{{ $message }}
@enderror
@error('category')
{{ $message }}
@enderror
$
@error('price')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror

Drag and drop images here or click to browse

JPG, JPEG, PNG (Max 2MB each)

@else

Product Information

@error('name')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror

Product Images

Drag and drop images here or click to browse

JPG, JPEG, PNG (Max 2MB each)

@error('images')
{{ $message }}
@enderror @error('images.*')
{{ $message }}
@enderror

Category

@error('category')
{{ $message }}
@enderror

Pricing

$
@error('price')
{{ $message }}
@enderror
@if(isset($product) && $product->images->isNotEmpty())

Existing Images ({{ $product->images->count() }})

@foreach($product->images as $image)
Product Image

{{ $image->created_at->format('M j, Y') }}

@endforeach
@endif
@endif {{-- Image Preview Script & Drag and Drop --}} @push('scripts') @endpush