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

Products Management

Manage your product inventory

@if($products->count() > 0)
@foreach($products as $product) @endforeach
ID Product Category Supplier Purchase Price Sale Price Quantity Stock Status Actions
{{ $product->id }}
{{ $product->name }}
@if($product->category) {{ $product->category->name }} @else No Category @endif @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
@csrf @method('DELETE')
@else
No Products Found

Start by adding your first product to the system.

Add Product
@endif
@endsection