@extends('crm.master') @section('title', 'Categories') @section('content')

Categories

Manage inventory categories

Add New Category
@include('crm.managements.categories.tabs')
@include('crm.components.alerts') @forelse($categories as $key => $category) @empty @endforelse
# Name Products Weight Status Color
{{ $key + 1 }} {{ $category->name }} {{ number_format($category->products_count ?? 0) }} Product{{ ($category->products_count ?? 0) !== 1 ? 's' : '' }} {{ $category->weight }} @if($category->status === 'active') Active @elseif($category->status === 'hidden') Hidden @else Archived @endif @if($category->color && $category->color !== 'none') @php $colorMap = [ 'red' => '#ef4444', 'orange' => '#f97316', 'yellow' => '#eab308', 'green' => '#22c55e', 'teal' => '#14b8a6', 'sky' => '#0ea5e9', 'blue' => '#3b82f6', 'violet' => '#8b5cf6', 'fuchsia' => '#d946ef', 'pink' => '#ec4899', 'gray' => '#6b7280', ]; $hex = $colorMap[$category->color] ?? '#6b7280'; @endphp {{ ucfirst($category->color) }} @else - @endif

No categories found

Add First Category
@endsection