@php $product = $product ?? null; $method = $method ?? 'POST'; $categoryOptions = $categories->pluck('name', 'id')->all(); $gallery = $product?->gallery ?? []; if (! is_array($gallery)) { $gallery = []; } @endphp
@csrf @if ($method !== 'POST') @method($method) @endif
@if (count($gallery))

Current gallery ({{ count($gallery) }})

@foreach ($gallery as $galleryImage) @endforeach
@endif

You can select multiple images. New images are appended to the gallery.

Cancel