@php $p = $product ?? null; $tagsCsv = $p && is_array($p->tags_json) ? implode(', ', $p->tags_json) : ''; $galleryUrls = $p && is_array($p->gallery_json) ? $p->gallery_json : []; @endphp
@csrf @if ($p) @method('PUT') @endif @if ($errors->any())
@foreach ($errors->all() as $e)
{{ $e }}
@endforeach
@endif {{-- Two-column shell. Left column = wide editing area, right = sticky organization rail. --}}
{{-- ============================== LEFT COLUMN ============================== --}}
{{-- Basics card --}}
{{ __('Basics') }}
{{-- Media card --}}
{{ __('Media') }}
{{ __('Primary image · drop or paste a URL') }}
{{ __('Tips for great product photos') }}
{{ __('Use square (1:1) images at 1024×1024 px or larger. Plain backgrounds convert better than busy ones.') }}
{{-- Gallery — extra product images (read by storefront product detail page) --}}
{{ __('Gallery') }}
{{ __('Add more images to the product detail page. Buyers see these as thumbnails.') }}
@foreach ($galleryUrls as $url)
@endforeach @if (empty($galleryUrls))
{{ __('No gallery images yet — click "Add image URL" above to add one.') }}
@endif
{{-- Hidden template that JS clones on Add --}}
{{-- Pricing card --}}
{{ __('Pricing') }}
{{-- Inventory + shipping card --}}
{{ __('Inventory & shipping') }}
{{-- ============================== RIGHT COLUMN (sticky rail) ============================== --}}
{{-- Sticky action bar --}}
{{ __('Cancel') }}