@extends('layouts.admin-master') @section('title', 'Product list') @section('css-top') @endsection @section('css') @endsection @section('content')

Total Product ({{$all_products}})

@if(count($products)>0) @foreach($products as $index => $product) @endforeach @else @endif
# Product Seller Sales Price Stock Upload_By Status Actions
{{(($products->perPage() * $products->currentPage() - $products->perPage()) + ($index+1) )}} Image {{Str::limit($product->title, 40)}} @if($product->vendor) {{$product->vendor->shop_name}}@else Seller not found. @endif
{{Carbon\Carbon::parse($product->created_at)->format(Config::get('siteSetting.date_format'))}}
{{ $product->sales }} {{Config::get('siteSetting.currency_symble')}}{{$product->pricing}} {!!($product->stock > 0) ? $product->stock : 'Stock Out' !!}

{{ ($product->user) ? $product->user->name : 'seller' }} @if($product->updated_by)
{{ ($product->updatedBy) ? $product->updatedBy->name : 'seller' }} @endif

{{$product->status}}
No Products Found.
{{$products->appends(request()->query())->links()}}
Showing {{ $products->firstItem() }} to {{ $products->lastItem() }} of total {{$products->total()}} entries ({{$products->lastPage()}} Pages)
@include('admin.modal.delete-modal') @endsection @section('js') @endsection