{{-- Tabel Gabungan Bahan & Sparepart untuk Supervisor (Read-Only) Variables: $production, $allItems (dari controller) --}} @php $orderQty = $production->quantity ?? $production->order->quantity ?? 1; @endphp
Total {{ $allItems->count() }} item untuk {{ $orderQty }} unit produk
| Tipe | Nama Item | Jumlah | Satuan | Stok | Harga Satuan | Total Harga | Status Stok | Diterima |
|---|---|---|---|---|---|---|---|---|
| @if($item['type'] === 'material') Bahan @else Sparepart @endif @if($item['is_additional']) Tambahan @endif |
{{ $item['name'] }}
|
{{ $item['quantity'] }} | {{ $item['unit'] }} | {{ $item['stock'] }} | Rp {{ number_format($item['unit_cost'], 0, ',', '.') }} | Rp {{ number_format($item['total_cost'], 0, ',', '.') }} | @if($item['stock_status'] === 'tersedia' || $item['stock'] >= $item['quantity'] * $orderQty) Tersedia @else Perlu Beli @endif | @if($item['is_received']) Ya @else Belum @endif |
| Total Biaya: | Rp {{ number_format($allItems->sum('total_cost'), 0, ',', '.') }} | |||||||
Belum ada bahan atau sparepart