@extends('layouts.admin-master') @section('title', 'Product list') @section('css-top') @endsection @section('css') @endsection @section('content')
| # | Product | Seller | Sales | Our Price Ranges | Selling Price | Enlisted | Stock | Upload_By | @if($status != 'pending' || (Request::get('status') == 'pending'))Approved | Status | @endifActions |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{(($products->perPage() * $products->currentPage() - $products->perPage()) + ($index+1) )}} | |
@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 | @php $stock = \App\Models\Enlist::where('product_id', $product->id)->sum('stock'); @endphp{!!($stock > 0) ? $stock : 'Stock Out' !!} | {{ ($product->user) ? $product->user->name : 'seller' }} @if($product->updated_by) |
@if($status != 'pending' || (Request::get('status') == 'pending'))
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
|
@endif
|
| No Products Found. |