From d6fd25c41a8657e138beafcd7f09909bc0bd96a9 Mon Sep 17 00:00:00 2001 From: Dwi Swandhana Date: Fri, 13 Mar 2026 12:39:52 +0700 Subject: [PATCH] Tambah tab Master Barang --- htdocs/resources/views/admin/gudang.blade.php | 188 ++++++++++-------- 1 file changed, 100 insertions(+), 88 deletions(-) diff --git a/htdocs/resources/views/admin/gudang.blade.php b/htdocs/resources/views/admin/gudang.blade.php index f02662b8..f7fea0cc 100644 --- a/htdocs/resources/views/admin/gudang.blade.php +++ b/htdocs/resources/views/admin/gudang.blade.php @@ -28,6 +28,9 @@ +
@@ -154,7 +157,7 @@
-
+
Report Transaksi

@@ -193,93 +196,6 @@
-
-
-
Master Barang / Stok
-

- -
-
- - - - - - - - - - - - - - - - - - @foreach(($jenisRows ?? []) as $row) - @php($kode = ($row['kodejenis'] ?? '') ?: preg_replace('/\s+/', '', (string) ($row['jenis'] ?? ''))) - @php($hasBreakdown = trim((string)($row['satuan_kecil'] ?? '')) !== '' && (int)($row['konversi_kecil'] ?? 1) > 1) - - - - - - - - - - - - - - @endforeach - -
KodeJenisSatuanSatuan KecilKonversiStok MinSisaWarningBarcodeDetailEdit
{{ $kode }}{{ $row['jenis'] }}{{ $row['satuan'] }}{{ $row['satuan_kecil'] }}{{ number_format($row['konversi_kecil'], 0, '.', ',') }}{{ number_format($row['stok_minimum'], 0, '.', ',') }}{{ $row['saldo'] }}{{ $row['warning'] }} - - @if($hasBreakdown) - - @endif - - - - -
-
-
-
-
@@ -402,6 +318,98 @@
+ +
+
+
+
+
Master Barang / Stok
+

+ +
+
+ + + + + + + + + + + + + + + + + + @foreach(($jenisRows ?? []) as $row) + @php($kode = ($row['kodejenis'] ?? '') ?: preg_replace('/\s+/', '', (string) ($row['jenis'] ?? ''))) + @php($hasBreakdown = trim((string)($row['satuan_kecil'] ?? '')) !== '' && (int)($row['konversi_kecil'] ?? 1) > 1) + + + + + + + + + + + + + + @endforeach + +
KodeJenisSatuanSatuan KecilKonversiStok MinSisaWarningBarcodeDetailEdit
{{ $kode }}{{ $row['jenis'] }}{{ $row['satuan'] }}{{ $row['satuan_kecil'] }}{{ number_format($row['konversi_kecil'], 0, '.', ',') }}{{ number_format($row['stok_minimum'], 0, '.', ',') }}{{ $row['saldo'] }}{{ $row['warning'] }} + + @if($hasBreakdown) + + @endif + + + + +
+
+
+
+
+
+
@@ -763,10 +771,14 @@ if($('#tab_report').hasClass('active')){ initReportIfNeeded(); + } + if($('#tab_master').hasClass('active')){ initJenisTableIfNeeded(); } $('a[href="#tab_report"]').on('shown.bs.tab', function(){ initReportIfNeeded(); + }); + $('a[href="#tab_master"]').on('shown.bs.tab', function(){ initJenisTableIfNeeded(); }); var snapshotUrl = "{{ route('simbhp.snapshot') }}";