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

{{translate('All products')}}

@if($type != 'Seller') @endif

{{ translate('All Product') }}
@if($type == 'Seller')
@endif @if($type == 'All')
@endif
@if($type == 'Seller' || $type == 'All') @endif @foreach($products as $key => $product) @if($type == 'Seller' || $type == 'All') @endif @endforeach
{{translate('Name')}}{{translate('Added By')}}{{translate('Info')}} {{translate('sku')}} {{translate('Total Stock')}} {{translate('Todays Deal')}} {{translate('Published')}} {{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 }}
{{ $product->barcode }} @if($product->variation != null) ({{ $product->variation }}) @endif @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
@if ($type == 'Seller') @else @endif
{{ $products->appends(request()->input())->links() }}
@endsection @section('modal') @include('modals.delete_modal') @endsection @section('script') @endsection