@extends('layouts.app') @section('main-content')
# | Category | Product Name | Location | Min Level | On Hand | @role('Super Admin|Product Manager|Admin')Prd Cost (RM) | @endroleUnit Price (RM) | @role('Super Admin|Product Manager|Admin')Total Cost (RM) | @endroleRestock | @forelse($inventories as $inventory)
---|---|---|---|---|---|---|---|---|---|
{{ $loop->iteration }} | {{ $inventory->category }} | {{ $inventory->product->name }} | {{ !empty($inventory->location_id) ? $inventory->storages->name : '' }} | {{ $inventory->threshold }} | @if ($inventory->onhand > $inventory->threshold ) {{ $inventory->onhand }} @elseif ($inventory->onhand == $inventory->threshold) {{ $inventory->onhand }} @else {{ $inventory->onhand }} @endif | @role('Super Admin|Product Manager|Admin'){{ number_format($inventory->max_cost, 2) }} | @endrole@if ($inventory->max_cost >= $inventory->unit_price ) {{ number_format($inventory->product->unit_price, 2) }} @else {{ number_format($inventory->unit_price, 2) }} @endif | @role('Super Admin|Admin|Product Manager'){{ number_format($inventory->max_cost * $inventory->onhand, 2,'.', ',') }} | @endrole{{ date('Y-m-d', strtotime($inventory->last_purchase)) }} |
Record not found |