{{-- Error Alert – only when NOT inside modal --}} @if (!($isModal ?? false)) @if ($errors->any())
Please fix the following errors:
@endif @endif
Product Information
@error('name')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
{{-- Enhanced file input with better styling --}}

Drag and drop images here or click to browse

Supports JPG, JPEG, PNG files (Max 2MB each)
{{-- Image preview container --}}
{{-- Upload type hidden field --}} @error('images')
{{ $message }}
@enderror @error('images.*')
{{ $message }}
@enderror
Category
@error('category')
{{ $message }}
@enderror
Pricing
$
@error('price')
{{ $message }}
@enderror
@if(isset($product) && $product->images->isNotEmpty() && !($isModal ?? false))
Existing Images ({{ $product->images->count() }})
@foreach($product->images as $image)
Product Image
Uploaded {{ $image->created_at->format('M j, Y') }}
@endforeach
@if($product->images->count() > 6)
Showing {{ min($product->images->count(), 6) }} of {{ $product->images->count() }} images
@endif
@endif
{{-- Simple Image Preview Script --}} @push('scripts') @endpush