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

Stock Balances

Current inventory by location, batch and expiry
{{-- STOCK KPIs --}}
{{ number_format($itemsInStock) }}
Items In Stock
UGX {{ number_format($stockValue, 2) }}
Stock Value
{{ number_format($lowStockItems) }}
Low Stock Items
{{ number_format($expiredBatches) }}
Expired Batches
{{-- FILTERS --}}
Search Inventory
{{-- STOCK TABLE --}}
Current Stock Balances
@forelse($stocks as $stock) @empty @endforelse
Code Item Location Batch Expiry Available Unit Cost Value Status
{{ $stock->item_code }} {{ $stock->item_name }} {{ $stock->location_name }} {{ $stock->batch_no }} @if($stock->expiry_date) {{ \Carbon\Carbon::parse($stock->expiry_date)->format('d-M-Y') }} @else - @endif {{ number_format($stock->quantity_on_hand) }} UGX {{ number_format($stock->average_unit_cost, 2) }} UGX {{ number_format($stock->stock_value, 2) }} @if($stock->quantity_on_hand <= 0) Out @elseif($stock->quantity_on_hand <= 10) Low @else Available @endif
No stock available.
{{ $stocks->links() }}
@endsection