@php($editing = $category->exists) @php($uoms = array_combine(\App\Modules\Catalog\Http\Requests\CategoryRequest::UOMS, \App\Modules\Catalog\Http\Requests\CategoryRequest::UOMS)) All categories
@csrf @if ($editing) @method('PUT') @endif
Category
@if ($editing)
Web address/category/{{ $category->slug }}
Set when the category was created. It stays the same when you rename the category, so links keep working.
@endif
Picture and icon
@if ($category->imageUrl()) Current picture @endif $errors->has('image')])> @error('image')
{{ $message }}
@enderror
Square photo, about 600 x 600 px, up to 1 MB. Shown in the category slider and on category pages.
Defaults for products in this category
A product's own commission, then the seller's rate, then this category rate is used (whichever is set first).
Display
@if ($editing)
@csrf @method('DELETE')
@endif