@extends('backend.layouts.app') @section('content') @php CoreComponentRepository::instantiateShopRepository(); CoreComponentRepository::initializeCache(); @endphp

{{ translate('All products') }}

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

{{ translate('All Product') }}
@can('product_delete') @endcan @if ($type == 'Seller')
@endif @if ($type == 'All' && get_setting('vendor_system_activation') == 1)
@endif
@if (auth()->user()->can('product_delete')) @else @endif @if ($type == 'Seller' || $type == 'All') @endif @if(env('ENABLE_TODAY_DEAL_PRODUCT') == true) @endif @if (get_setting('product_approve_by_admin') == 1 && $type == 'Seller') @endif @if(env('ENABLE_FEATURED_PRODUCT') == true) @endif @if(env('ENABLE_IS_ONLINE_PRODUCT') == true) @endif @foreach ($products as $key => $product) @if (auth()->user()->can('product_delete')) @else @endif @if ($type == 'Seller' || $type == 'All') @endif @if(env('ENABLE_TODAY_DEAL_PRODUCT') == true) @endif @if (get_setting('product_approve_by_admin') == 1 && $type == 'Seller') @endif @if(env('ENABLE_FEATURED_PRODUCT') == true) @endif @if(env('ENABLE_IS_ONLINE_PRODUCT') == true) @endif @endforeach
#{{ translate('Name') }}{{ translate('Added By') }}{{ translate('Info') }} {{ translate('Total Stock') }}{{ translate('Todays Deal') }}{{ translate('Published') }}{{ translate('Approved') }}{{ translate('Featured') }}{{ translate('Is Online') }}{{ translate('Options') }}
{{ $key + 1 + ($products->currentPage() - 1) * $products->perPage() }}
Image
{{ $product->getTranslation('name') }}
{{ optional($product->user)->name }} {{ translate('Num of Sale') }}: {{ $product->num_of_sale }} {{ translate('times') }}
{{ translate('Base Price') }}: {{ single_price($product->unit_price) }}
@if(env('ENABLE_PRODUCT_REVIEW') == true) {{ translate('Rating') }}: {{ $product->rating }}
@endif
@if ($product->digital == 1) {{ translate('Digital Product') }} @else @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) {{ translate('Low') }} @endif @endif
@can('product_edit') @if ($type == 'Seller') @else @endif @endcan @can('product_duplicate') @endcan @can('product_delete') @endcan
{{ $products->appends(request()->input())->links() }}
@endsection @section('modal') @include('modals.delete_modal') @include('modals.bulk_delete_modal') @endsection @section('script') @endsection