{{ __('Inventory Report') }}

{{ __('Generated on') }}: {{ now()->format('Y-m-d H:i:s') }}

{{ __('Summary') }}

{{ __('Total Categories') }} {{ count($productsByCategory) }}
{{ __('Total Products') }} {{ $productsByCategory->flatten()->count() }}
{{ __('Available Products') }} {{ $productsByCategory->flatten()->where('is_active', true)->count() }}
{{ __('Unavailable Products') }} {{ $productsByCategory->flatten()->where('is_active', false)->count() }}
@foreach($productsByCategory as $category => $products)
{{ $category }}
@foreach($products as $product) @endforeach
{{ __('Product Name') }} {{ __('Description') }} {{ __('Price') }} {{ __('Status') }}
{{ $product->name }} {{ $product->description }} {{ number_format($product->price, 2) }} @if($product->is_active) {{ __('Available') }} @else {{ __('Unavailable') }} @endif
@endforeach