@extends('seller.layout') @section('content')
{{ __('Report.productStockReport') }}
@if (count($products)) @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 @endforeach
# {{ __('Report.Product Name') }} {{ __('Report.Stock') }}
{{ ($key+1) + ($products->currentPage() - 1)*$products->perPage() }} {{ $product->{'title_' . App::getLocale()} }} {{ $qty }}
@else {{ __('General.No Data Avalible') }} @endif {{ $products->links() }}
@endsection