@extends('layouts.admin') @section('title', 'Products - ' . $shop->store_name) @section('content')
@if ($errors->any()) @endif @if (config('app.debug'))
Debug Info:
@endif

Product Management

Total Products
{{ $stats['total'] }}
Active Products
{{ $stats['active'] }}
In Stock
{{ $stats['in_stock'] }}
Featured
{{ $stats['featured'] }}
Filters
Clear
Products
@if($products->count() > 0)
@foreach($products as $product) @endforeach
Image Product SKU Category Price Stock Status Actions
@if($product->image_url) {{ $product->name }} @else
@endif
{{ $product->name }} @if($product->brand)
{{ $product->brand }} @endif @if($product->bizspot_category_path)
{{ $product->bizspot_category_path }} @endif
{{ $product->sku ?: 'N/A' }} @if($product->bizspot_category_data) @php $categoryData = $product->bizspot_category_data; @endphp
{{ $categoryData['business_type_name'] ?? 'N/A' }} {{ $categoryData['main_category_name'] ?? 'N/A' }} {{ $categoryData['sub_category_name'] ?? 'N/A' }}
@else Uncategorized @endif
${{ number_format($product->price, 2) }} @if($product->on_sale && $product->sale_price)
${{ number_format($product->sale_price, 2) }} @endif
{{ $product->stock_quantity }} @if($product->min_stock_level && $product->stock_quantity <= $product->min_stock_level)
Low Stock @endif
{{ ucfirst(str_replace('_', ' ', $product->stock_status)) }} @if($product->featured)
Featured @endif @if($product->new_arrival)
New @endif
{{ $products->links() }}
@else

No products found. Add your first product to get started!

@endif
@endsection @section('scripts') @endsection