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

Total Enlists ({{$products->count()}})

@if(count($products)>0) @foreach($products as $index => $product) @endforeach @else @endif
# Store Name Approved By Available Stock Given Price Approved Status Actions
{{(($products->perPage() * $products->currentPage() - $products->perPage()) + ($index+1) )}} {{Str::limit($product->vendor->shop_name, 40)}}

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

{{$product->stock}} {{$product->selling_price}}
status != 'pending') ? 'checked' : ''}} data-on-color="success" data-off-color="danger" data-on-text="Approved" data-off-text="Pending">
@if($product->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