@extends('layouts.app') @section('title', 'Category Details') @section('content')

{{ $category->name }}

Category details and products

{{ $category->name }}

{{ $category->products_count ?? 0 }} Products

Created

{{ $category->created_at->format('M d, Y') }}

Last Updated

{{ $category->updated_at->format('M d, Y') }}

Products in this Category
@if($category->products->count() > 0)
@foreach($category->products as $product) @endforeach
ID Name Supplier Purchase Price Sale Price Quantity Stock Status Actions
{{ $product->id }}
{{ $product->name }}
@if($product->supplier) {{ $product->supplier->name }} @else No Supplier @endif BDT{{ number_format($product->purchase_price ?? 0, 2) }} BDT{{ number_format($product->sale_price ?? 0, 2) }} {{ $product->quantity }} @if($product->quantity < 10) Low Stock @elseif($product->quantity < 50) Medium Stock @else In Stock @endif
@else
No Products in this Category

This category doesn't have any products yet.

Add Product
@endif
@endsection