@extends('layouts.dashboard') @section('content') @php $totalProducts = \App\Models\Product::count(); $missingImages = \App\Models\Product::where(function($q){ $q->whereNull('main_image')->orWhere('main_image', ''); })->count(); $withPrices = \App\Models\Product::where(function($q){ $q->where('van_sales_price','>',0)->orWhere('default_van_sales_price','>',0); })->count(); $activeProducts = \App\Models\Product::where('status', 'active')->count(); $discontinuedProducts = \App\Models\Product::where('status', 'discontinued')->count(); @endphp
Product library with prices, images, SKU and barcode.