@extends('layouts.app') @section('content')
Kelola semua produk dan stok di toko Anda.
| Produk | Kategori | Harga Jual | Total Stok | Status | Aksi | |
|---|---|---|---|---|---|---|
|
{{ $product->name }}
@if($product->variant_count > 1)
{{ $product->variant_count }} varian
@endif
{{ $product->display_barcode }}
|
{{ $product->category->name ?? '-' }} | Rp {{ number_format($product->display_selling_price, 0, ',', '.') }} |
@if($product->total_stock >= 99999)
∞
@else
{{ $product->total_stock }}
@endif
@if($product->variant_count > 1)
@endif
|
@if($product->total_stock >= 99999) Unlimited @elseif($product->total_stock <= $product->total_minimum_stock) @if($product->total_stock == 0) Habis @else Rendah @endif @else Normal @endif | ||
|
Detail Stok per Varian:
@foreach($product->variants_info as $variant)
{{ $variant['variant_name'] }}
Stok:
{{ $variant['stock'] }}
Harga:
Rp {{ number_format($variant['selling_price'], 0, ',', '.') }}
|
||||||
{{ $product->name }}
@if($product->variant_count > 1) {{ $product->variant_count }} varian @endif{{ $product->display_barcode }}
Rp {{ number_format($product->display_selling_price, 0, ',', '.') }}
Kategori
{{ $product->category->name ?? '-' }}
Total Stok
{{ $product->total_stock }}
@endif @if($product->variant_count > 1) @endifDetail Stok per Varian:
{{ $variant['variant_name'] }}