@extends('layouts.app') @section('title', 'Inventory Report') @section('content')
| Product Name | SKU | Location | Quantity | Total Value |
|---|---|---|---|---|
| {{ str_replace('_', ' ', $type) }}s | ||||
|
{{ $item->product->name ?? 'Unknown' }}
{{ $item->product->category ?? '-' }}
|
{{ $item->product->code ?? '-' }} |
@if($isAllLocations && !request()->filled('product_id'))
Combined Stock
Across All Locations
@php
$iconColor = 'text-muted';
$icon = 'fa-map-pin';
$locationName = $item->location->name ?? null;
if ($item->location_type == 'warehouse' || $item->location_type == 'distribution_center') {
$iconColor = 'text-primary';
$icon = 'fa-warehouse';
$locationName = $locationName ?? ($warehouseMap[$item->location_id] ?? 'Warehouse');
} elseif ($item->location_type == 'distribution_point') {
$iconColor = 'text-success';
$icon = 'fa-truck-ramp-box';
$locationName = $locationName ?? ($dpMap[$item->location_id] ?? 'Distribution Point');
} elseif ($item->location_type == 'outlet') {
$iconColor = 'text-info';
$icon = 'fa-store';
$locationName = $locationName ?? ($outletMap[$item->location_id] ?? 'Outlet');
}
@endphp
@endif
{{ $locationName }}
{{ str_replace('_', ' ', $item->location_type) }}
@if($item->location_type == 'outlet' && isset($item->location->rt_code))
•
{{ $item->location->rt_code }}
@endif
|
{{ number_format($item->quantity) }} | {{ number_format($item->quantity * ($item->product->unit_price ?? 0), 2) }} |
|
No inventory records found. |
||||