@extends('layouts.admin') @section('title', 'All Products - Unified View') @section('content')
Unified view of products from shops, supermarkets, vendors, and more
| 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'] }}
{{ 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') }} |
Try adjusting your search criteria or add some products.