@extends('admin.layouts.master') @section('title', 'Add Product Inventory') @section('content')
Inventory Detail Head Office Inventory
@foreach ($inventoryDetails as $index => $inventory) @endforeach
# Date Quantity Added By
{{ $index + 1 }} {{ \Carbon\Carbon::parse($inventory->created_at)->format('j M, Y \a\t g:i A') }} {{ $inventory->quantity }} {{ optional($inventory->user)->name ?? 'N/A' }}

Latest Stock Information
Image Product Name Quantity Stock Status Threshold
@if ($latestInventoryDetail->product->image) Product Image @else No Image @endif {{ $latestInventoryDetail->product->category->category_name }} - {{ $latestInventoryDetail->product->subCategory->sub_category_name }} - {{ $latestInventoryDetail->product->product_name }} {{ $latestInventoryDetail->product->brand->brand_name }} {{ $latestInventoryDetail->product->quantity }} @php $stock_status = $latestInventoryDetail->product->stock; $stock_bg = $stock_status == 'out_of_stock' ? 'danger' : ($stock_status == 'normal' ? 'primary' : 'warning'); @endphp {{ str_replace('_', ' ', $stock_status) }} {{ $latestInventoryDetail->product->threshold }}
@endsection