Page 15 - Modul CRUD Laravel_Neat
P. 15
</div>
<form action="/barang/action-edit" method="post">
@csrf
<table>
<tr>
<td><input type="hidden" name="id" value="{{ $barang-
>id }}"></td>
</tr>
<tr>
<td>Nama Barang</td>
<td><input type="text" name="nama" class="form-
control" required="required"
value="{{ $barang->nama_barang }}"></td>
</tr>
<tr>
<td>Jumlah Barang</td>
<td><input type="text" name="jumlah" class="form-
control" required="required"
value="{{ $barang->jumlah_barang }}"></td>
</tr>
<tr>
<td>Harga</td>
<td><input type="text" name="harga" class="form-
control" required="required"
value="{{ $barang->harga_barang }}"></td>
</tr>
<tr>
<td><input type="submit" class="btn btn-info mt-
3" class="form-control" value="Simpan Data"></td>
<td><a href="/barang" class="btn btn-danger mt-
3" role="button">Kembali</a></td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</body>
</html>