@extends('layouts.admin-simple') @section('title', $good->ig_description) @section('breadcrumb')
IG Code: {{ $good->ig_code }}
{{ $good->ig_code }}{{ $good->notes }}
@endif| # | Division | Supplier | Batch / Invoice | Qty Available | Unit Price | Total Value | Location | Expiry Date | Status |
|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $inv->division ? $inv->division->division_name : 'N/A' }} | {{ $inv->supplier ? $inv->supplier->supplier_name : 'N/A' }} |
@if($inv->batch_number)
{{ $inv->batch_number }}@endif @if($inv->invoice_number) Inv: {{ $inv->invoice_number }} @endif |
@if($inv->quantity_available <= 0) {{ number_format($inv->quantity_available, 2) }} @else {{ number_format($inv->quantity_available, 2) }} @endif | AED {{ number_format($inv->unit_price, 2) }} | AED {{ number_format($inv->total_value, 2) }} | {{ $inv->location ?? 'N/A' }} |
@if($inv->expiry_date)
@if($inv->expiry_date->isPast())
{{ $inv->expiry_date->format('M d, Y') }}
Expired @elseif($inv->expiry_date->diffInDays(now()) <= 30) {{ $inv->expiry_date->format('M d, Y') }} Expiring soon @else {{ $inv->expiry_date->format('M d, Y') }} @endif @else N/A @endif |
@if($inv->status === 'in_stock') In Stock @elseif($inv->status === 'low_stock') Low Stock @elseif($inv->status === 'out_of_stock') Out of Stock @else {{ ucfirst(str_replace('_', ' ', $inv->status ?? 'unknown')) }} @endif |
| Totals: | {{ number_format($good->inventories->sum('quantity_available'), 2) }} | - | AED {{ number_format($good->inventories->sum('total_value'), 2) }} | ||||||
| Date | Type | Quantity | Before | After | Division | Invoice # | User | Notes |
|---|---|---|---|---|---|---|---|---|
| {{ $movement->created_at->format('M d, Y H:i') }} | {{ $badgeText }} | @if($isIncrease) +{{ number_format($movement->quantity_moved, 2) }} @else -{{ number_format($movement->quantity_moved, 2) }} @endif {{ $good->unit ? $good->unit->unit_symbol : $good->unit_of_measure }} | {{ number_format($movement->quantity_before, 2) }} | {{ number_format($movement->quantity_after, 2) }} | {{ $movement->division ? $movement->division->division_name : 'N/A' }} |
@if($movement->invoice_number)
{{ $movement->invoice_number }}
@else
-
@endif
|
{{ $movement->user ? $movement->user->name : 'System' }} | {{ $movement->notes ?? '-' }} |