@extends('layouts.admin') @section('title', 'Inventory') @section('page-title', 'Inventory') @section('breadcrumbs') Inventory @endsection @section('content')

Inventory Management

Total Items

{{ $totalItems ?? 0 }}

inventory_2

Low Stock

{{ $lowStock ?? 0 }}

warning

Out of Stock

{{ $outOfStock ?? 0 }}

remove_shopping_cart

Total Value

{{ number_format($totalValue ?? 0, 2) }}

attach_money
search
@forelse($inventoryItems ?? [] as $index => $item) @empty @endforelse
# PRODUCT CODE UNIT PURCHASE PRICE SELLING PRICE QUANTITY STATUS ACTIONS
{{ $index + 1 }}
@if($item->product->image ?? null) @else
inventory_2
@endif {{ $item->product->name ?? 'Product Name' }}
{{ $item->code ?? '-' }} {{ $item->unit ?? '-' }} {{ number_format($item->purchase_price ?? 0, 2) }} {{ number_format($item->selling_price ?? 0, 2) }} {{ $item->quantity ?? 0 }} @if(($item->product->stock ?? 0) <= 0) Out of Stock @elseif(($item->product->stock ?? 0) <= ($item->product->alert_quantity ?? 10)) Low Stock @else In Stock @endif
inventory_2

No inventory items found

@if(isset($inventoryItems) && method_exists($inventoryItems, 'hasPages') && $inventoryItems->hasPages())
{{ $inventoryItems->links() }}
@endif
@push('styles') @endpush @push('scripts') @endpush @endsection