@extends('layouts.app') @section('page_title', 'System Alerts') @section('content')

🔔 System Alerts

📊 Today's inventory snapshot and risk assessments.

{{-- 3-Column Grid --}}
{{-- Column 1: Critical Stock --}}

🔴 Critical Stock

@forelse($outStocks as $product)

{{ $product->name }}

Completely out of stock!

@empty

No critical shortages. 🌱

@endforelse
{{-- Column 2: Low Stock --}}

🟡 Low Stock

@forelse($lowStocks as $product)

{{ $product->name }}

Only {{ $product->stock }} left.

@empty

No low stock items. ☕

@endforelse
{{-- Column 3: Expiring Soon --}}

📅 Expiring Soon

@forelse($expiringSoon as $batch)

{{ $batch->product->name }}

{{-- If it expires today, show a special warning --}} @if($batch->expiry_date->isToday()) Expires Today! @else Expires: {{ $batch->expiry_date->format('d M Y') }} @endif

@empty

No items expiring in the next 7 days. ✅

@endforelse
@endsection