@props(['product' => new \App\Models\Product()])

A. General Information

Product Information

@error('name') {{ $message }} @enderror
@error('brand') {{ $message }} @enderror
Commas are not allowed in the model field @error('model') {{ $message }} @enderror

Product Documents

Drop files here or click to upload.

Upload file
(Support JPEG/JPG/PNG format only, with Maximum size of 2MB per image)
@php $oldImages = old('image', []); $storedImages = $product->attachments->where('type', 'image')->pluck('path')->toArray(); $imagePaths = array_unique(!empty($oldImages) ? $oldImages : $storedImages); @endphp @if (!empty($imagePaths)) @foreach ($imagePaths as $image) @endforeach @endif
@error('image') {{ $message }} @enderror
No file selected
(Support PDF format only with max size of 10MB) @error('brochure') {{ $message }} @enderror