@extends('admin.layout') @section('title', 'Categories & specs') @section('content')

Specification fieldsCategories

Define the specification fields once, here. Each product form then shows the fields for its category (plus the ones for all categories), and customers see them as a table on the product page and in Compare.

@foreach ($list->push(new \App\Models\SpecAttribute(['name' => '', 'unit' => '', 'input_type' => 'text', 'choices' => '', 'category_id' => null, 'sort_order' => 0, 'active' => 1])) as $a) @php($new = !$a->exists) @csrf @unless ($new)@endunless @endforeach
Field nameUnitTypeApplies toOrder
choices) }}"> @unless ($new)@endunless
@endsection