{{ __('Report.productStockReport') }}
@if (count($products))
# |
{{ __('Report.Product Name') }} |
{{ __('Report.Stock') }} |
@foreach ($products as $key => $product)
@php
$qty = 0;
if ($product->variant_product) {
foreach ($product->stocks as $key => $stock) {
$qty += $stock->qty;
}
} else {
$qty = $product->current_stock;
}
@endphp
{{ ($key+1) + ($products->currentPage() - 1)*$products->perPage() }} |
{{ $product->{'title_' . App::getLocale()} }} |
{{ $qty }} |
@endforeach
@else
{{ __('General.No Data Avalible') }}
@endif
{{ $products->links() }}