@extends('admin.layout') @section('content')

{{ translate('Product stock report') }}

@if (Session::get('tenant_subscribtion_data')['sellers']['belongs_to_subscribtion'] == true && Session::get('tenant_controle_modules')['sellers'] == 1)
@include('admin.Seller.nav', ['seller_id' => $seller_id , 'active' => 'product_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 @endforeach
# {{ translate('Product name') }} {{ translate('Stock') }}
{{ $key + 1 + ($products->currentPage() - 1) * $products->perPage() }} {{ $product->{'title_' . App::getLocale()} }} {{ $qty }}
{{ $products->links() }}
@else

{{ translate('You need to upgrade to use this feature.') }}

{{ translate('Please Upgrade to use this feature.') }}


{{ translate('Upgrade now') }}
@endif
@endsection @section('script') @endsection