@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 $key => $product) @if(Auth::user()->can('delete', App\Product::class) || isset($vendor)) @endif @endforeach @endif
@lang('ID') @lang('Photo') @lang('Name') @lang('Product Code') @lang('Stock') @lang('Price') @lang('Category') @lang('Status') @lang('Created') @lang('Added By') @lang('Action')
{{$loop->iteration}} @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}} {{$product->model ? $product->model : '-'}} {{$product->in_stock ? $product->in_stock : __('Out of Stock')}} {{currency_format($product->price)}} {{$product->category ? $product->category->name .' (' . __('ID:') . ' '.$product->category->id.')' : '-'}} {{$product->is_active ? __('Active') : __('Inactive')}} {{$product->created_at->diffForHumans()}} {{$product->user ? $product->user->name : '-'}}   @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