@extends('layouts.app') @section('title', 'Products') @section('content')
| Sell | SKU | Product Name | Type | Price | Stock | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $product->sku ?: '-' }} |
{{ $product->name }}
@if($product->isAdminProduct())
Global
@endif
@if($product->description)
{{ Str::limit($product->description, 50) }} @endif |
@if($product->isBundle())
Bundle
@if($product->bundle_items)
{{ count($product->bundle_items) }} items:
@foreach($product->bundle_items as $bundleItem)
• {{ $bundleItem['name'] ?? $bundleItem['sku'] ?? 'N/A' }} x{{ $bundleItem['quantity'] }}
@endforeach
|
RM {{ number_format($product->price, 2) }} | {{ $product->stock ?? '-' }} | @if($product->is_active) Active @else Inactive @endif | @if($product->user_id === auth()->id()) @else Read-only @endif | |
| No products found. Add your first product | |||||||