 <?php $__env->startSection('content'); ?>
<title>Edit Data</title>
<div class="card-header py-3">
    <h6 class="m-0 font-weight-bold text-dark">Edit Data</h6>
</div>
<div class="card-body">
    <div class="x_content">
        <form action="/keranjang_masuk/update" method="post">
            <?php echo e(csrf_field()); ?>

            
            <div class="form-group">
                <label for="">Barang</label>
                <input type="hidden" name="id_masuk" value="<?php echo e($masuk2->id_masuk); ?>">
                 <select name="id_barang" id="" class="form-control">
                 <?php $__currentLoopData = $barang; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $r): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <?php if($masuk2->id_barang==$r->id_barang): ?>
                  <option value="<?php echo e($r->id_barang); ?>" selected="selected"><?php echo e($r->nama_barang); ?></option>
                  <?php else: ?>
                  <option value="<?php echo e($r->id_barang); ?>"><?php echo e($r->nama_barang); ?></option>
                      <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select> 
            </div>
            <div class="form-group">
                <label for="">Jumlah</label>
                <input type="number" name="jumlah" class="form-control" value="<?php echo e($masuk2->jumlah_asup); ?>" required placeholder="Masukan Jumlah">
            </div>

            <div class="form-group">
 <label for="">Harga Satuan</label>
                    <input type="number" name="harga_satuan" id="txt2[]" onkeyup="sum();" value="<?php echo e($masuk2->harga_satuan); ?>" class="form-control" required placeholder="Masukan Jumlah" required>
                
             </div>
                   
             <div class="form-group">
<label for="">Harga Total</label>
                    <input type="number" name="harga_total" id="txt3[]" readonly class="form-control" value="<?php echo e($masuk2->harga_total); ?>" required placeholder="Masukan Jumlah" required>
                
             </div>
                    
             <div class="form-group">
<label for="">Nama Toko</label>
                    <input type="text" name="nama_toko" class="form-control" value="<?php echo e($masuk2->nama_toko); ?>" required placeholder="Masukan Jumlah" required>
                
             </div>
                    
             <div class="form-group">
<label for="">Merek</label>
                    <input type="text" name="merek" class="form-control" required value="<?php echo e($masuk2->merek); ?>" placeholder="Masukan Jumlah" required>
                
             </div>
                    
              
          <div class="form-group">
              <label for="">Sumber Dana</label>
                <input type="text" name="sumber_dana" class="form-control" required value="<?php echo e($masuk2->sumber_dana); ?>" placeholder="Masukan Sumber dana" required>
          </div>
           
            <div class="form-group">
                <label for="">Tanggal Keluar</label>
                <input type="date" name="tanggal_masuk" class="form-control" value="<?php echo e($masuk2->tanggal_masuk); ?>" required>
            </div>
    </div>
    <button type="submit" class="btn btn-primary">Simpan</button>
    </form>

</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH R:\xampp\htdocs\laravel_sarpras\resources\views/keranjang_masuk/edit.blade.php ENDPATH**/ ?>