@extends('layouts.app') @section('content') @if($type != 'Seller')
@if(Auth::user()->id != "320") @if(Auth::user()->user_type == 'admin' || in_array('18', json_decode(Auth::user()->staff->role->permissions))) {{translate('Add New Product')}}   {{ translate('Export report') }} @endif @endif
@endif @if($type == 'Seller')
@if(Auth::user()->id != "320") @if(Auth::user()->user_type == 'admin' || in_array('18', json_decode(Auth::user()->staff->role->permissions)))   {{ translate('Export report') }} @endif @endif
@endif

{{ translate($type.' Products') }}

@if($type == 'Seller' || $type == 'In House')
@endif
{{--
--}}
@if($type == 'Seller') @endif @if(Auth::user()->id != "320") @endif @foreach($products as $key => $product) @if($type == 'Seller') @endif @php $ordering = \App\ProductOrder::where('product_id', @$product->id)->first(); @endphp @if(! in_array(Auth::user()->id, [320,38604])) @else @endif @endforeach
# {{translate('Name')}}{{translate('Seller Name')}}{{translate('Manage By')}} {{translate('Total Sale')}} {{translate('Total Stock')}} {{translate('Base Price')}} {{translate('Rating')}} {{translate('Discount')}} {{translate('Published')}} {{translate('Ordering')}} {{translate('Top Selling')}} {{translate('New Arrival')}}{{translate('Options')}}
{{ $products->firstItem() + $loop->index }}
Image
{{ __($product->name) }}
{{ @$product->productSeller->name }}{{ productManageBy($product->manage_by)}} {{ $product->num_of_sale }} {{translate('times')}} {{--@php $qty = 0; if($product->variant_product){ foreach ($product->stocks as $key => $stock) { @$qty += $stock->qty; } } @endphp--}} {{ $product->total_qty ?? '--' }} {{ number_format(@$product->unit_price,2) }} {{ $product->rating }} {{ $product->discount }} @if(Auth::user()->id == "320") @else @endif
{{ @$products->appends(request()->input())->links() }}
@endsection @section('script') @endsection