{{__('admin.Pending Products')}}

{{__('admin.Add New')}}
@foreach ($pending_products as $index => $product) @php $total_sold=App\Models\OrderItem::where('Product_id', $product->id)->get()->count(); @endphp @endforeach
{{__('admin.SN')}} {{__('admin.Name')}} {{__('admin.Total Sale')}} {{__('admin.Category')}} {{__('admin.Status')}} {{__('admin.Action')}}
{{ ++$index }} {{ html_decode($product->productlangadmin->name) }}{{ $total_sold }} {{ $product->category->catlangadmin->name }} @if($product->status == 1) {{__('admin.Active')}} @else {{__('admin.Pending')}} @endif @php $order_item = App\Models\OrderItem::where('product_id', $product->id)->first(); @endphp @if ($order_item) @else @endif