@extends('backEnd.layouts.master') @section('title','Wholesale Products') @section('content')

Wholesale Products

@if($categories && $categories->count() > 0)
@endif
@forelse($data as $product) @empty @endforelse
Image Product Name Category Vendor Wholesale Tiers Price Stock Status Actions
{{ $product->name }}

{{ Str::limit($product->name, 40) }}

SKU: {{ $product->sku ?? 'N/A' }}
{{ $product->category->name ?? 'N/A' }} @if($product->vendor) {{ $product->vendor->shop_name ?? 'Vendor #' . $product->vendor_id }} @else Inhouse @endif @if($product->wholesalePrices && $product->wholesalePrices->count() > 0) {{ $product->wholesalePrices->count() }} Tier(s) @else No Tiers @endif ৳{{ number_format($product->new_price, 2) }} @if($product->old_price && $product->old_price > $product->new_price)
৳{{ number_format($product->old_price, 2) }} @endif
{{ $product->stock ?? 0 }} {{ $product->status == 1 ? 'Active' : 'Inactive' }}

No wholesale products found

@if($data->hasPages())
{{ $data->links() }}
@endif
@endsection