sibanu_web/resources/views/admin/barang/modal_edit.blade.php
2022-08-21 13:18:13 +07:00

173 lines
7.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="modal fade" id="modal_edit" tabindex="-1" role="dialog" aria-labelledby="modal_add" aria-hidden="true">
<div class="modal-dialog modal-lg modal-" role="document">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="modal-title-default">Update Data Barang</h2>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="text-center text-muted mb-4">
<small></small>
</div>
<form role="form" action="<?= route('barang.updated') ?>" method="post" enctype="multipart/form-data">
@csrf
@method('put')
<input type="hidden" name="id" />
<div class="row">
<div class="form-group mb-3 col-6">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-list"></i></span>
</div>
<input class="form-control" required placeholder="inputkan Nama Barang ..." type="text" name="nama_barang">
</div>
</div>
<div class="form-group mb-3 col-6">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-list"></i></span>
</div>
<input class="form-control" required placeholder="inputkan Serial Number ..." type="text" name="serial_number">
</div>
</div>
<div class="form-group mb-3 col-6">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-list"></i></span>
</div>
<input class="form-control" required placeholder="inputkan Kode Barang ..." type="text" name="kode_barang">
</div>
</div>
<div class="form-group mb-3 col-6">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-list"></i></span>
</div>
<input class="form-control" required placeholder="inputkan NUP Barang..." type="text" name="nup">
</div>
</div>
</div>
<div class="form-group mb-3">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-map-marker"></i></span>
</div>
<input class="form-control" required placeholder="inputkan Nama Lokasi Akurat ..." type="text" name="lokasi">
</div>
</div>
<div class="form-group mb-3">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fas fa-list"></i> Tanggal Masuk :</span>
</div>
<input class="form-control" required placeholder="inputkan ..." type="date" name="tanggal_masuk">
</div>
</div>
<div class="row">
<div class="form-group mb-3 col-6">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fas fa-list"></i></span>
</div>
<select name="jenis_barang" class="form-control" required>
<option value="">-- Pilih Jenis Barang --</option>
@foreach($jenis_barang as $i)
<option value="{{ $i->id }}">{{ $i->nama_jenis }}</option>
@endforeach
</select>
</div>
</div>
<div class="form-group mb-3 col-6">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fas fa-list"></i></span>
</div>
<select name="satuan_barang" class="form-control" required>
<option value="">-- Pilih Satuan Barang --</option>
@foreach($satuan_barang as $i)
<option value="{{ $i->id }}">{{ $i->nama_satuan }}</option>
@endforeach
</select>
</div>
</div>
<div class="form-group mb-3 col-6">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"> <i class="fas fa-list"></i></span>
</div>
<select name="kategori_simak" class="form-control" required>
<option value="">-- Pilih Kategori Simak --</option>
@foreach($kategori_simak as $i)
<option value="{{ $i->id }}" <?php if($i->id) ?>>{{ $i->nama_kategori }}</option>
@endforeach
</select>
</div>
</div>
<div class="form-group mb-3 col-6">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-money-check"></i></span>
</div>
<input class="form-control" required placeholder="Update Harga Barang ..." type="text" name="harga">
</div>
</div>
</div>
<div class="form-group mb-3">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-list"></i></span>
</div>
<input class="form-control" required placeholder="Update Jumlah Barang ..." type="number" name="jumlah">
</div>
</div>
<div class="form-group mb-3">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-list"></i></span>
</div>
<textarea class="form-control" required placeholder="inputkan Keterangan Barang ..." name="keterangan"></textarea>
</div>
</div>
<div class="form-group mb-3 col-6">
<div class="input-group input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-upload"></i></span>
</div>
<input class="custom-file-input form-control" placeholder="inputkan Jumlah Barang ..." type="file" name="image_barang"><br>
</div>
</div>
<small>* Update Image</small>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Update</button>
</form>
</div>
</div>
</div>
</div>