@extends('admin.layouts.app')
@section('title', 'Inventory - Admin')
@section('page-title', 'Inventory Manager')
@section('content')
{{-- Alerts --}}
@if($expired->count() > 0)
⚠️ {{ $expired->count() }} product(s) have expired!
@endif
@if($expiringSoon->count() > 0)
🕐 {{ $expiringSoon->count() }} product(s) expiring within 7 days!
@endif
@if($lowStock->count() > 0)
📉 {{ $lowStock->count() }} product(s) with low stock (≤ 3)!
@endif
{{-- Expired Products --}}
@if($expired->count() > 0)
🔴 Expired Products
| Product |
Category |
Shelf |
Stock |
Expiry Date |
Action |
@foreach($expired as $product)
| {{ $product->name }} |
{{ $product->category->name }} |
{{ $product->shelf_code }} |
{{ $product->stock }} |
{{ $product->expiry_date->format('d M Y') }} |
Edit
|
@endforeach
@endif
{{-- Expiring Soon --}}
@if($expiringSoon->count() > 0)
🟡 Expiring Soon (within 7 days)
| Product |
Category |
Shelf |
Stock |
Expiry Date |
Days Left |
Action |
@foreach($expiringSoon as $product)
| {{ $product->name }} |
{{ $product->category->name }} |
{{ $product->shelf_code }} |
{{ $product->stock }} |
{{ $product->expiry_date->format('d M Y') }} |
{{ now()->diffInDays($product->expiry_date) }} days |
Edit
|
@endforeach
@endif
{{-- Low Stock --}}
@if($lowStock->count() > 0)
@endif
{{-- All Products --}}
📦 All Products — Stock & Restock by Carton
{{-- Restock by Carton Modal --}}
📦 Restock by Carton
@endsection
@push('scripts')
@endpush