@extends('layouts.app') @section('content')

{{ __('Inventory Report') }}

{{ __('Export PDF') }}
{{ __('Report Date') }}: {{ now()->format('Y-m-d') }}
{{ __('Tracked') }}: {{ __('Low Stock') }}:
@forelse($productsByCategory as $category => $products)

{{ $category ?? __('Uncategorized') }}

@foreach($products as $product) is_stock_tracked && $product->isLowStock()) class="table-warning" @endif> @endforeach
{{ __('Product Name') }} {{ __('SKU') }} {{ __('Price') }} {{ __('Tracked') }} {{ __('Quantity') }} {{ __('Reorder Level') }} {{ __('Status') }}
{{ $product->name }} {{ $product->sku ?? '—' }} {{ number_format($product->price, 2) }} @if($product->is_stock_tracked) {{ __('Yes') }} @else {{ __('No') }} @endif @if($product->is_stock_tracked) {{ $product->stock_quantity }} @else @endif {{ $product->is_stock_tracked ? ($product->reorder_level ?? '—') : '—' }} @if($product->is_active) {{ __('Available') }} @else {{ __('Unavailable') }} @endif @if($product->is_stock_tracked && method_exists($product, 'isLowStock') && $product->isLowStock()) {{ __('Reorder') }} @endif
@empty
{{ __('No products found in inventory') }}
@endforelse
{{ __('Inventory Summary') }}
@endsection @section('scripts') @endsection