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

Current Stock Overview

{{ __('Search') }}

Total Products

{{ $products->total() }}

Total Stock Value

{{ number_format($totalStockValue, 2) }}

Low Stock Items

{{ $lowStockCount }}

@foreach($products as $product) @endforeach
Product Name Current Stock Unit Cost Price Selling Price Stock Value Status Actions
{{ $product->name }}
{{ $product->quantity }}
{{ $product->unit }}
{{ number_format($product->input_price_per_unit, 2) }}
{{ number_format($product->selling_price_per_unit, 2) }}
{{ number_format($product->quantity * $product->input_price_per_unit, 2) }}
@if($product->quantity < 10) Low Stock @elseif($product->quantity < 20) Medium Stock @else In Stock @endif
@can('manage-stock') Edit @endcan @can('manage-stock-output') Output @endcan @can('sell-stock') Sell @endcan
{{ $products->links() }}
@endsection