sibanu_web/resources/views/admin/barang/modal_edit.blade.php

133 lines
5.8 KiB
PHP
Raw Normal View History

2022-08-20 13:40:13 +07:00
<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>
<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>
<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" required 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>