@extends('layouts.admin-simple') @section('title', $category->category_name) @section('page-title', $category->category_name) @section('page-subtitle', 'Item Category Details') @section('breadcrumb') @endsection @section('page-actions')
@can('warehouse.item-categories.edit') edit Edit Category @endcan
@endsection @section('content')
Category Information
Basic Information
Category Name
{{ $category->category_name }}
Category Code
@if($category->category_code) {{ $category->category_code }} @else Not assigned @endif
Type of Goods
{{ $category->type_of_goods ?: 'Not specified' }}
Status
@if($category->status === 'active') Active @else Inactive @endif
Created Date
{{ $category->created_at->format('M d, Y H:i') }}
Last Updated
{{ $category->updated_at->format('M d, Y H:i') }}
Statistics
Total Items
@php $itemCount = $category->items()->count(); @endphp {{ $itemCount }}
Active Items
@php $activeItemCount = $category->items()->where('status', 'active')->count(); @endphp {{ $activeItemCount }}
@if($category->description)
Description

{{ $category->description }}

@endif
@if($category->items()->count() > 0)
Items in this Category
View All Items
@foreach($category->items()->limit(10)->get() as $item) @endforeach
Item Code Item Name Unit Status Actions
{{ $item->item_code }} {{ $item->item_description }} {{ $item->unit_of_measure }} @if($item->status === 'active') Active @else {{ ucfirst($item->status) }} @endif visibility
@if($category->items()->count() > 10) @endif
@endif @endsection @push('styles') @endpush