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

{{translate('All Wholesale Products')}}

@if($type != 'Seller' && auth()->user()->can('add_wholesale_product')) @endif

{{ translate('All Wholesale Product') }}
@if($type != 'In House')
@endif
@if($type != 'In House') @endif @if(get_setting('product_approve_by_admin') == 1 && $type == 'Seller') @endif @foreach($products as $key => $product) @if($type != 'In House') @endif @if(get_setting('product_approve_by_admin') == 1 && $type == 'Seller') @endif @endforeach
{{translate('Name')}}{{translate('Added By')}}{{translate('Info')}} {{translate('Total Stock')}} {{translate('Todays Deal')}} {{translate('Published')}}{{translate('Approved')}}{{translate('Featured')}} {{translate('Options')}}
Image
{{ $product->getTranslation('name') }}
{{ $product->user->name }} {{translate('Num of Sale')}}: {{ $product->num_of_sale }} {{translate('times')}}
{{translate('Base Price')}}: {{ single_price($product->unit_price) }}
{{translate('Rating')}}: {{ $product->rating }}
@php $qty = 0; if($product->variant_product) { foreach ($product->stocks as $key => $stock) { $qty += $stock->qty; echo $stock->variant.' - '.$stock->qty.'
'; } } else { //$qty = $product->current_stock; $qty = optional($product->stocks->first())->qty; echo $qty; } @endphp @if($qty <= $product->low_stock_quantity) Low @endif
@can('edit_wholesale_product') @endcan @can('delete_wholesale_product') @endcan
{{ $products->appends(request()->input())->links() }}
@endsection @section('modal') @include('modals.delete_modal') @endsection @section('script') @endsection