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

156 lines
7.2 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_add" 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">Tambah 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.store') ?>" method="post">
@csrf
<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="jenis_barang" class="form-control" required>
<option value="">-- Pilih Kategori Simak --</option>
@foreach($kategori_simak as $i)
<option value="{{ $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-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="inputkan 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-money-check"></i></span>
</div>
<input class="form-control" required placeholder="inputkan Harga Barang ..." type="number" name="harga_barang">
</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>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Simpan </button>
</form>
</div>
</div>
</div>
</div>