@extends('layouts.dashboard.adminapp') @section('title', 'Inventory Report') @section('styles') @endsection @section('content')

UEPL | Inventory Report

Filters
Reset
@php $totalPurchased = collect($inventory)->sum('purchased'); $totalSold = collect($inventory)->sum('sold'); $totalBalance = collect($inventory)->sum('balance'); @endphp
{{ count($inventory) }}
Total Materials
{{ number_format($totalPurchased) }}
Total Purchased
{{ number_format($totalSold) }}
Total Sold
{{ number_format($totalBalance) }}
Current Balance
Inventory Report
@forelse($inventory as $item) @empty @endforelse
Material Code Description Purchased Sold Balance Status
{{ $item['material_code'] }} {{ $item['description'] }} +{{ number_format($item['purchased']) }} -{{ number_format($item['sold']) }} {{ number_format($item['balance']) }} @if($item['balance'] <= 0) Out of Stock @elseif($item['balance'] < 10) Low Stock @else In Stock @endif
No inventory records found
TOTAL: +{{ number_format($totalPurchased) }} -{{ number_format($totalSold) }} {{ number_format($totalBalance) }}
@endsection @section('scripts') @endsection