{{-- mainLayouts extends --}} @extends('layouts.contentLayoutMaster') {{-- Page title --}} @section('title', 'Products') {{-- vendors styles --}} @section('vendor-style') @endsection {{-- page styles --}} @section('page-style') @endsection @section('content')
{{ $products->withQueryString()->links() }}
@forelse ($products as $key => $product) @empty @endforelse
# Name Image Normal Price Discounted Price Merchant Price Quantity Is Bestdeal Category
{{ $key + $products->firstItem()}} {{ $product->model }} @if (isset($product->images[0])) product image @else product image @endif {{ $product->inventory && $product->inventory->normal_price ? $product->inventory->normal_price : '-' }} {{ $product->inventory && $product->inventory->discounted_price ? $product->inventory->discounted_price : '-' }} @foreach ($product->prices as $price) {{ $price->merchantClass->name }} - {{ number_format($price->price) }} @endforeach {{ $product->inventory && $product->inventory->actual_stock ? $product->inventory->actual_stock : '-' }} {{ $product->is_bestdeal == 1 ? 'Yes' : 'No' }} {{ $product->category->name }} @if($product->category->is_customer_also == '1' && $product->category->is_merchant_also == '1') (Customer & Merchant) @elseif($product->category->is_customer_also == '1') (Customer) @elseif($product->category->is_merchant_also == '1') (Merchant) @endif
remove_red_eye edit @if (count($product->orderDetails) > 0 || count($product->serviceRequests) > 0) @elseif(count($product->carKnowledges) > 0) @else
@endif
No Products Found!
{{-- {{ $products->withQueryString()->links() }} --}}
@endsection {{-- vendor scripts --}} @section('vendor-script') @endsection {{-- page script --}} @section('page-script') @endsection