 <?php $__env->startSection('content'); ?>
<title>Edit Data Peminjaman</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_peminjaman/update" method="post">
            <?php echo e(csrf_field()); ?>

            <div class="form-group">
                <label for="">Nama Peminjam</label>
                <input type="hidden" name="id_peminjaman" value="<?php echo e($peminjaman2->id_peminjaman); ?>">
                <input type="text" name="nama_peminjaman" class="form-control" value="<?php echo e($peminjaman2->nama_peminjam); ?>" required placeholder="Masukan Nama">
            </div>
            <div class="form-group">
                <label for="">Nama Barang</label>
                 <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($peminjaman2->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="text" name="jumlah" class="form-control" value="<?php echo e($peminjaman2->jumlah_pinjam); ?>" required placeholder="Masukan Ruangan">
            </div>
            <div class="form-group">
                <label for="">Tanggal Peminjaman</label>
                <input type="date" name="tanggal_pinjam" class="form-control" value="<?php echo e($peminjaman2->tanggal_pinjam); ?>" required placeholder="Masukan Ruangan">
            </div>
            <div class="form-group">
                <label for="">Tanggal Kembali</label>
                <input type="date" name="tanggal_kembali" class="form-control" value="<?php echo e($peminjaman2->tanggal_kembali); ?>" required placeholder="Masukan Ruangan">
            </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_peminjaman/edit.blade.php ENDPATH**/ ?>