@extends('layouts.admin') @section('page-title', 'Attribute Sets') @section('content')
{{-- Page Header --}}

Attribute Sets

Manage product attributes and their values across categories

{{ $attributeSets->total() }} {{ Str::plural('attribute', $attributeSets->total()) }}
{{-- Table --}}

Attributes

@forelse($attributeSets as $index => $set) @empty @endforelse
# Title Values Categories Options
{{ $attributeSets->firstItem() + $index }} {{ $set->title }}
@forelse($set->values->take(3) as $value) {{ $value->value }} @empty No values @endforelse @if($set->values->count() > 3) +{{ $set->values->count() - 3 }} @endif
@forelse($set->categories->take(2) as $category) {{ $category->name }} @empty All categories @endforelse @if($set->categories->count() > 2) +{{ $set->categories->count() - 2 }} @endif
@csrf @method('DELETE')

No attributes yet

Create your first product attribute using the form

@if($attributeSets->hasPages())
{{ $attributeSets->links() }}
@endif
{{-- Add Attribute Form --}}

Add New Attribute

@csrf
@error('title')

{{ $message }}

@enderror

Hold Ctrl or Cmd to select multiple

@error('categories')

{{ $message }}

@enderror
@endsection