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

{{ $item->item_name }}

{{ $item->item_code }}
{{-- KPI CARDS --}}
{{ number_format($totalStock) }}
Quantity On Hand
UGX {{ number_format($stockValue, 2) }}
Stock Value
{{ $item->reorder_level }}
Reorder Level
{{ $item->status }}
Status
{{-- ITEM DETAILS --}}
Item Details
Category: {{ $item->category }}
Base Unit: {{ $item->base_unit }}
Issue Unit: {{ $item->issue_unit }}
Generic Name: {{ $item->generic_name }}
Brand Name: {{ $item->brand_name }}
Manufacturer: {{ $item->manufacturer }}
{{-- BATCHES --}}
Current Batches
@forelse($stockBalances as $batch) @empty @endforelse
Location Batch Expiry Quantity Unit Cost Value
{{ $batch->location_name ?? '-' }} {{ $batch->batch_no }} @if($batch->expiry_date) {{ \Carbon\Carbon::parse($batch->expiry_date)->format('d-m-Y') }} @else - @endif {{ number_format($batch->quantity_on_hand) }} UGX {{ number_format($batch->average_unit_cost, 2) }} UGX {{ number_format($batch->stock_value, 2) }}
No stock available
{{-- STOCK LEDGER --}}
Stock Ledger
@foreach($movements as $movement) @endforeach
Date Movement Location Batch Qty In Qty Out
{{ \Carbon\Carbon::parse($movement->movement_date)->format('d-m-Y') }} {{ $movement->movement_type }} {{ $movement->location_name ?? '-' }} {{ $movement->batch_no }} {{ number_format($movement->qty_in) }} {{ number_format($movement->qty_out) }}
{{-- RECEIPT HISTORY --}}
Receipt History
@forelse($receipts as $receipt) @empty @endforelse
Receipt No Date Batch Quantity Unit Cost Total
{{ $receipt->receipt_no }} {{ \Carbon\Carbon::parse($receipt->receipt_date)->format('d-m-Y') }} {{ $receipt->batch_no }} {{ number_format($receipt->quantity_received) }} UGX {{ number_format($receipt->unit_cost, 2) }} UGX {{ number_format($receipt->line_total, 2) }}
No receipt history available.
{{-- ISSUE HISTORY --}}
Issue History
@forelse($issues as $issue) @empty @endforelse
Issue No Date Destination Batch Quantity Total
{{ $issue->issue_no }} {{ \Carbon\Carbon::parse($issue->issue_date)->format('d-m-Y') }} {{ $issue->destination_name ?? '-' }} {{ $issue->batch_no }} {{ number_format($issue->quantity_issued) }} UGX {{ number_format($issue->line_total, 2) }}
No issue history available.
@endsection