@if(session('success'))
{{ session('success') }}
@endif

Product Categories

@if($categories->count() > 0)
    @foreach($categories as $category)
  • {{ $category->name }} {{ $category->code }}
    @if($category->children->count() > 0)
      @foreach($category->children as $child)
    • {{ $child->name }} {{ $child->code }}
    • @endforeach
    @endif
  • @endforeach
@else

No categories yet. Add your first category!

@endif

Sub Category

@if($brands->count() > 0)
@foreach($brands as $brand)
{{ $brand->name }}
{{ Str::limit($brand->description, 30) ?: 'No description' }}
{{ $brand->is_active ? 'Active' : 'Inactive' }}
@endforeach
@else

No Sub Category yet. Add your first Sub Category!

@endif

Units of Measurement

@if($units->count() > 0)
@foreach($units as $unit)
{{ $unit->short_name }}
{{ $unit->name }}
@if($unit->base_unit_id && $unit->baseUnit) 1 {{ $unit->short_name }} = {{ $unit->conversion_factor }} {{ $unit->baseUnit->short_name }} @else Base Unit ({{ $unit->conversion_factor }}) @endif
@endforeach
@else

No units yet. Run the migration to seed default units!

@endif

Product Attributes (Color, Size, etc.)

Create attributes like "Color" or "Size", then add values like "Red", "Blue", "S", "M", "L". These can be used to create product variations.

@if(isset($attributes) && $attributes->count() > 0)
@foreach($attributes as $attribute)
{{ $attribute->name }} {{ ucfirst($attribute->type) }} {{ $attribute->values->count() }} values
@foreach($attribute->values as $value)
@if($attribute->type == 'color' && $value->color_code) @endif {{ $value->value }}
@endforeach
@endforeach
@else

No attributes yet. Create attributes like "Color" or "Size" to enable product variations.

@endif