@extends('layouts.admin') @section('title', 'All Products - Unified View') @section('content')

All Products

Unified view of products from shops, supermarkets, vendors, and more

Add New Product
Total Products
{{ number_format($stats['total']) }}
Global Products
{{ number_format($stats['global']) }}
Shop Products
{{ number_format($stats['shop']) }}
Supermarket
{{ number_format($stats['supermarket']) }}
Vendor Products
{{ number_format($stats['vendor']) }}
Total Value
${{ number_format($stats['total_value'], 2) }}
Filter Products
All Products ({{ number_format($total) }} items)
@if($products->count() > 0)
@foreach($products as $product) @endforeach
Image Product Name Source Business Bizspot Category Price Stock Featured Created Actions
@if($product['images']) @php $images = is_string($product['images']) ? json_decode($product['images'], true) : $product['images']; $firstImage = is_array($images) && count($images) > 0 ? $images[0] : null; @endphp @if($firstImage) {{ $product['name'] }} @else
@endif @else
@endif
{{ $product['name'] }}
{{ Str::limit($product['description'], 50) }}
{{ $product['source'] }} {{ $product['business_name'] }}
{{ $product['business_type'] }}
{{ $product['bizspot_type'] }}
{{ $product['bizspot_main_category'] }}
@if($product['bizspot_sub_category'] !== 'N/A') {{ $product['bizspot_sub_category'] }} @endif
${{ number_format($product['price'], 2) }} @if($product['discount_price'])
${{ number_format($product['discount_price'], 2) }} @endif
@if($product['stock'] > 0) {{ $product['stock'] }} in stock @elseif($product['stock'] === 0) Out of stock @else N/A @endif @if($product['featured']) Featured @else Regular @endif {{ \Carbon\Carbon::parse($product['created_at'])->format('M d, Y') }}
@if($product['view_url'] !== '#') @endif @if($product['edit_url'] !== '#') @endif
Showing {{ ($page - 1) * $perPage + 1 }} to {{ min($page * $perPage, $total) }} of {{ number_format($total) }} results
@if($page > 1) Previous @endif @if($page * $perPage < $total) Next @endif
@else
No products found

Try adjusting your search criteria or add some products.

@endif
@endsection