{{ __('Inventory Report') }}

@if($lowStockProducts->count() > 0)

{{ __('Stock Alerts (Low Inventory)') }}

@foreach($lowStockProducts as $product)

{{ App::getLocale() == 'ar' ? ($product->name_ar ?: $product->name_en) : $product->name_en }}

SKU: {{ $product->sku }}

{{ __('Remaining') }}: {{ $product->quantity }} / {{ __('Alert at') }}: {{ $product->stock_alert_quantity }}

{{ __('Restock') }}
@endforeach
@endif

{{ __('Current Inventory Status') }}

@foreach($products as $product) @endforeach
{{ __('Product') }} {{ __('SKU') }} {{ __('Category') }} {{ __('Current Stock') }} {{ __('Unit Price') }} {{ __('Inventory Value') }}
{{ App::getLocale() == 'ar' ? ($product->name_ar ?: $product->name_en) : $product->name_en }} {{ $product->sku }} {{ $product->category->name_en ?? '-' }} {{ $product->quantity }} ${{ number_format($product->price, 2) }} ${{ number_format($product->quantity * $product->price, 2) }}
{{ __('Total Inventory Value') }}: ${{ number_format($products->sum(fn($p) => $p->quantity * $p->price), 2) }}