@if($products_vendor) @lang('Vendor') {{$products_vendor->name}} @endif
@if(!empty($search = request()->s)) @lang('Showing :total_products products with :per_page products per page for keyword: :keyword', ['total_products' => $products->total(), 'per_page' => $products->perPage(), 'keyword' => $search])  @lang('Show all') @else @lang('Showing :total_products products with :per_page products per page', ['total_products' => $products->total(), 'per_page' => $products->perPage() ]) @endif @if(empty(request()->all))
@lang('Show products in a single page') @else
@lang('Show products with pagination') @endif
@if(Auth::user()->can('delete', App\Product::class) || isset($vendor)) {{csrf_field()}}
@endif {{-- --}}
{{--
@lang('Advanced Search')
--}} @if(Auth::user()->can('delete', App\Product::class) || isset($vendor)) @endif @if($products) @foreach($products as $product) @if(Auth::user()->can('delete', App\Product::class) || isset($vendor)) @endif @if($product->vendor && isset($vendor) && $vendor) @if($product->sku) @else @endif @if($product->hsn) @else @endif @else @endif @endforeach @endif
@lang('ID') @lang('Photo') @lang('Name') @lang('SKU') @lang('HSN') @lang('Stock') @lang('Price') @lang('Tax(%)') @lang('Category') @lang('Brand') @lang('Model') @lang('Vendor') @lang('Custom Fields') @lang('Status') @lang('Created') @lang('Added By') @lang('Action')
{{$product->id}} @if($product->photo) @php $image_url = \App\Helpers\Helper::check_image_avatar($product->photo->name, 50); @endphp {{$product->name}} @else {{$product->name}} @endif {{$product->name}}{{substr($product->sku, strpos($product->sku, '-') + 1)}}-{{substr($product->hsn, strpos($product->hsn, '-') + 1)}}-{{$product->sku ? $product->sku : '-'}} {{$product->hsn ? $product->hsn : '-'}}{{$product->in_stock ? $product->in_stock : __('Out of Stock')}} {{currency_format($product->price)}} {{$product->tax_rate}} {{$product->category ? $product->category->name .' (' . __('ID:') . ' '.$product->category->id.')' : '-'}} {{$product->brand ? $product->brand->name : '-'}} {{$product->model ? $product->model : '-'}} {{$product->vendor ? $product->vendor->name : '-'}} @if(count($custom_fields = unserialize($product->custom_fields)) > 0 && is_array($custom_fields)) @php($i = 0)
    @foreach($custom_fields as $key => $field) @if(!empty($key) && !empty($field)) @php($i++)
  • {{$key}}: {{$field}}
  • @endif @endforeach
@if($i < 1) - @endif @else - @endif
{{$product->is_active ? __('Active') : __('Inactive')}} {{$product->created_at->diffForHumans()}} {{$product->user ? $product->user->name .' @'.$product->user->username : '-'}}   @if(Auth::user()->can('update', App\Product::class) || isset($vendor)) @endif   @if(Auth::user()->can('delete', App\Product::class) || isset($vendor)) @endif
@if(!request()->all)
{{$products->appends($_GET)->links()}}
@endif