@extends('layouts.app')
@section('title', $category->name . ' - Category - Smart ERP')
@section('page-title', 'Category Details')
@section('content')
{{ substr($category->name, 0, 1) }}
{{ $category->name }}
{{ $category->is_active ? 'Active' : 'Inactive' }}
Category Information
Name
{{ $category->name }}
Code
@if($category->code)
{{ $category->code }}
@else
—
@endif
Description
{{ $category->description ?? '—' }}
Products in this Category
Total Products
{{ $category->products->count() }}
@if($category->products->count() > 0)
Recent Products
@foreach($category->products->take(5) as $product)
{{ $product->name }}
@endforeach
@endif
Created: {{ $category->created_at->format('d M Y, h:i A') }}
Last Updated: {{ $category->updated_at->format('d M Y, h:i A') }}
ID: {{ $category->id }}
@endsection