@extends('layouts.admin') @section('title', $product ? $product->names['en'] ?? __('Edit product') : __('New product')) @section('content') @php $m = $shop->money; $p = $product; $selCats = old('category_ids', $p->category_ids ?? []); @endphp ← {{ __('Products') }}
{{ __('No photos yet.') }}
@endforelse{{ __('Create the colour variants first, then you can set which photos belong to which colour.') }}
@endif @error('images.*'){{ $message }}
@enderror{{ __('A variant is one colour + size shoppers can buy. Pick the colours and sizes this product comes in; missing combinations are created, existing ones are kept.') }}
@if ($p->variants)| {{ __('Variant') }} | {{ __('Price override') }} | {{ __('Was price') }} | {{ __('On sale') }} | {{ __('In stock') }} | ||
|---|---|---|---|---|---|---|
| {{ collect([$v->color, $v->size])->filter()->implode(' / ') ?: __('Default') }}{{ $v->sku }} |
{{ __('No variants yet — shoppers can\'t buy this product until you create some.') }}
@endif