<?php
session_start();
$tahun = $_SESSION['tahun'];
$id_gudang = $_SESSION['id_gudang'];
?>

<h2>Input Data Stock Opname</h2>
<form action="proses_input_barang.php" method="POST">
  <input type="hidden" name="id_gudang" value="<?= $id_gudang ?>">
  <input type="hidden" name="tahun" value="<?= $tahun ?>">

  <label>Nama Barang:</label><br>
  <input type="text" name="nama_barang" required><br><br>

  <label>Kondisi:</label><br>
  <select name="kondisi">
    <option>Baik</option>
    <option>Rusak</option>
    <option>Hilang</option>
  </select><br><br>

  <label>Stok Awal:</label><br>
  <input type="number" name="stok_awal" required><br><br>

  <label>Realisasi:</label><br>
  <input type="number" name="realisasi" required><br><br>

  <label>Keterangan:</label><br>
  <textarea name="keterangan"></textarea><br><br>

  <button type="submit">Simpan</button>
</form>
