@extends('layouts.app') @section('content') @if($type != 'Seller')
# | {{translate('Name')}} | @if($type == 'Seller'){{translate('Seller Name')}} | @endif{{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')}} | @if(Auth::user()->id != "320"){{translate('Options')}} | @endif|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $products->firstItem() + $loop->index }} |
{{ __($product->name) }}
|
@if($type == 'Seller')
{{ @$product->productSeller->name }} | @endif{{ 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 | @php $ordering = \App\ProductOrder::where('product_id', @$product->id)->first(); @endphp@if(! in_array(Auth::user()->id, [320,38604])) |
|
@else
@endif |