@extends('super-admin.layout') @section('title', 'Inventory Report') @section('subtitle', 'Current inventory status and stock analysis') @section('content')

Inventory Summary

{{ number_format($summary['total_dishes']) }}
Total Dishes
{{ number_format($summary['total_stock_units']) }}
Stock Units
₦{{ number_format($summary['total_stock_value'], 0) }}
Stock Value
{{ number_format($summary['avg_daily_velocity'], 1) }}
Avg Daily Velocity
{{ $summary['critical_stock_items'] }}
Critical Stock (≤5)
{{ $summary['low_stock_items'] }}
Low Stock (≤10)
{{ $summary['warning_stock_items'] }}
Warning Stock (≤20)

Export Options

@if($stockAlerts['critical']->count() > 0)

Critical Stock Alert - Immediate Action Required

@foreach($stockAlerts['critical'] as $item) @endforeach
Dish Category Current Stock Daily Velocity Days Until Stockout Stock Value
{{ $item['name'] }} {{ $item['category'] }} {{ $item['current_stock'] }} {{ $item['daily_velocity'] }} @if($item['estimated_stockout_days']) {{ $item['estimated_stockout_days'] }} days @else - @endif ₦{{ number_format($item['stock_value'], 0) }}
@endif

Inventory by Category

@foreach($categoryInventory as $category) @endforeach
Category Total Items Stock Units Stock Value Avg Velocity Critical Items Low Items
{{ $category['category'] }} {{ $category['total_items'] }} {{ number_format($category['total_stock']) }} ₦{{ number_format($category['total_value'], 0) }} {{ number_format($category['avg_velocity'], 1) }} @if($category['critical_items'] > 0) {{ $category['critical_items'] }} @else 0 @endif @if($category['low_items'] > 0) {{ $category['low_items'] }} @else 0 @endif

Complete Inventory Status

@foreach($inventory as $item) @endforeach
Dish Category Stock Status Sold (Period) Daily Velocity Est. Stockout Stock Value
{{ $item['name'] }}
{{ $item['category'] }} {{ $item['current_stock'] }} @if($item['stock_status'] === 'critical') Critical @elseif($item['stock_status'] === 'low') Low @elseif($item['stock_status'] === 'warning') Warning @else Good @endif {{ $item['sold_in_period'] }} {{ $item['daily_velocity'] }} @if($item['estimated_stockout_days']) {{ $item['estimated_stockout_days'] }} days @else - @endif ₦{{ number_format($item['stock_value'], 0) }}
@endsection