@php $gallery = $gallery ?? null; $method = $method ?? 'POST'; $categoryOptions = $categories->pluck('name', 'id')->all(); @endphp