@php $productMap = []; foreach ($products as $product) { $productMap[$product->id] = [ 'id' => $product->id, 'name' => $product->name, 'price' => $product->price, 'stock' => $product->stock, 'img' => $product->image, 'category_id' => $product->category_id, ]; } @endphp
Transaksi Kasir POS

Kasir POS

{{ auth()->user()->name }}

Katalog Produk

@if(request('category')) @endif
Semua @foreach ($categories as $category) {{ $category->name }} @endforeach
@forelse ($products as $product)
@if($product->image) {{ $product->name }} @else
@endif Stok: {{ $product->stock }}

{{ $product->name }}

Rp {{ number_format($product->price, 0, ',', '.') }}
@empty

Produk tidak ditemukan.

@endforelse
@if(method_exists($products, 'links'))
{{ $products->withQueryString()->links('vendor.pagination.tailwind') }}
@endif

Keranjang

0 item

Keranjang belanja masih kosong.