@extends('layouts.admin') @section('title', 'Kelola Kategori Produk') @section('content')

Kelola Kategori Produk

Kelola kategori produk yang dijual perusahaan

Total Kategori
{{ $categories->total() }}
Kategori Aktif
{{ $categories->where('is_active', true)->count() }}
Kategori Nonaktif
{{ $categories->where('is_active', false)->count() }}
Total Produk
{{ $categories->sum('products_count') }}

Daftar Kategori Produk

@if($categories->count() > 0)
@foreach($categories as $category) @endforeach
Kategori Produk Status Urutan Dibuat Aksi
@if($category->image)
{{ $category->name }}
@else
@endif
{{ $category->name }}
{{ Str::limit($category->description, 50) }}
{{ $category->products_count }} produk
@if($category->is_active) Aktif @else Nonaktif @endif
{{ $category->sort_order }}
{{ $category->created_at->format('d M Y') }}
{{ $categories->links() }}
@else

Belum ada kategori produk

Mulai dengan menambahkan kategori produk pertama.

Tambah Kategori Produk
@endif
@endsection