@extends('layouts.admin-simple') @section('title', 'Item Details - ' . $item->item_code) @section('breadcrumb')
{{ $item->item_description }}
| Item Code: | {{ $item->item_code }} |
| Description: | {{ $item->item_description }} |
| Category: | {{ $item->category->category_name ?? 'Unknown' }} |
| Unit of Measure: | {{ $item->unit_of_measure }} |
| Total Quantity: | {{ number_format($inventoryDetails->sum('quantity'), 2) }} {{ $item->unit_of_measure }} |
| Total Value: | AED {{ number_format($inventoryDetails->sum('total_value'), 2) }} |
| Purchase History: | {{ $pricingHistory->count() }} purchase operations |
| Storage Locations: | {{ $inventoryDetails->groupBy('division')->count() }} divisions |
| Date | Operation | Supplier | Quantity | Unit Price (Original) | Unit Price (د.إ) | Total Value (د.إ) | Batch |
|---|---|---|---|---|---|---|---|
| {{ $purchase->date->format('d M, Y') }} | {{ $purchase->operation_number }} | {{ $purchase->supplier }} | {{ number_format($purchase->quantity, 2) }} | {{ $purchase->currency }} {{ number_format($purchase->original_unit_price, 2) }} | AED {{ number_format($purchase->unit_price, 2) }} | AED {{ number_format($purchase->total_price, 2) }} | {{ $purchase->batch_number ?: '-' }} |
| No purchase history found | |||||||
| Division | Location | Batch Number | Quantity | Unit Price | Total Value | Production Date | Expiry Date | Days to Expiry | Status |
|---|---|---|---|---|---|---|---|---|---|
| {{ $inventory->division }} | {{ $inventory->location ?: '-' }} |
{{ $inventory->batch_number ?: '-' }}
|
{{ number_format($inventory->quantity, 2) }} {{ $item->unit_of_measure }} | AED {{ number_format($inventory->unit_price, 2) }} | AED {{ number_format($inventory->total_value, 2) }} | {{ $inventory->production_date ? $inventory->production_date->format('d M, Y') : '-' }} | @if($inventory->expiry_date) {{ $inventory->expiry_date->format('d M, Y') }} @else - @endif | @if($inventory->days_until_expiry !== null) @if($inventory->days_until_expiry < 0) Expired ({{ abs($inventory->days_until_expiry) }} days ago) @elseif($inventory->days_until_expiry <= 30) {{ $inventory->days_until_expiry }} days @else {{ $inventory->days_until_expiry }} days @endif @else - @endif | {{ ucfirst(str_replace('_', ' ', $inventory->status)) }} |
| No current inventory found | |||||||||
No pricing data available
No inventory distribution data available