@extends('layouts.app') @section('main-content')

Product List

All product available
Add Product
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@forelse ($products as $product) @empty @endforelse
# Name Description Unit Price UoM Min Level Category Status Modified By Edit
{{ $loop->iteration }} {{ $product->name }} {{ $product->description }} {{ number_format($product->unit_price, 2) }} {{ $product->productUom->description }} {{ $product->threshold }} {{ $product->category->name }} @if ($product->onhand > 0 && $product->onhand > $product->threshold) Active @elseif ($product->onhand > 0 && $product->onhand <= $product->threshold) Low @else Inactive @endif {{ $product->user->username }}
Record not found
@endsection @section('script') @endsection