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

Total Product ({{$all_products}})

@if($status != 'pending' || (Request::get('status') == 'pending')) @endif @if(count($products)>0) @foreach($products as $index => $product) @php $stock = \App\Models\Enlist::where('product_id', $product->id)->sum('stock'); @endphp @if($status != 'pending' || (Request::get('status') == 'pending')) @endif @endforeach @else @endif
# Product Seller Sales Our Price Ranges Selling Price Enlisted Stock Upload_ByApproved StatusActions
{{(($products->perPage() * $products->currentPage() - $products->perPage()) + ($index+1) )}} Image {{Str::limit($product->title, 40)}} @if(isset($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->min_price}}-{{$product->max_price}} {{Config::get('siteSetting.currency_symble')}}{{$product->selling_price}} {{ $product->enlists->count() }} Seller{!!($stock > 0) ? $stock : 'Stock Out' !!}

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

status != 'pending') ? 'checked' : ''}} data-on-color="success" data-off-color="danger" data-on-text="Approved" data-off-text="Pending">
@if(Request::get('status') != 'pending')
status == 1 || $product->status == 'active') ? 'checked' : ''}} type="checkbox" class="custom-control-input" id="status{{$product->id}}">
@else Pending @endif
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