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

My Inventory

Inventory List
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@role('Manager|Admin') @endrole @forelse($inventories as $inventory) @role('Manager|Admin') @endrole @empty @endforelse
Product Name Location Min Level On HandAvg CostUnit Price Last Re-Stock
{{ $inventory->name }} {{ $inventory->location }} {{ $inventory->threshold }} product_id] > $inventory->threshold ) class="badge bg-success py-1 w-100 m-0" @else class="badge bg-danger py-1 w-100 m-0" @endif > {{ $onhand[$inventory->product_id] }} RM{{ $avgCost[$inventory->product_id] }} @if ($avgCost[$inventory->product_id] >= $inventory->unit_price ) RM{{ number_format($inventory->unit_price, 2) }} @else RM{{ number_format($inventory->unit_price, 2) }} @endif {{ $inventory->created_at }}
Record not found
{{ $inventories->links() }}
@endsection