<?php $__env->startSection('prestado_a'); ?>
    Prestar libros
<?php $__env->stopSection(); ?>

<?php $__env->startSection("scripts"); ?>
<script src="<?php echo e(asset("assets/pages/scripts/libro-prestamo/crear.js")); ?>" type="text/javascript"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('contenido'); ?>
<div class="row">
    <div class="col-lg-12">
        <?php echo $__env->make('includes.mensaje', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php echo $__env->make('includes.form-error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="box box-danger">
            <div class="box-header with-border">
                <h3 class="box-title">Prestar libro</h3>
                <a href="<?php echo e(route('libro-prestamo')); ?>" class="btn btn-info btn-sm pull-right">Listado</a>
            </div>
            <form action="<?php echo e(route('libro-prestamo.guardar')); ?>" id="form-general" class="form-horizontal" method="POST" autocomplete="off" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="box-body">
                    <div class="form-group">
                        <label for="libro_id" class="col-lg-3 control-label requerido">Libro</label>
                        <div class="col-lg-8">
                            <select name="libro_id" id="libro_id" class="form-control" required>
                                <option value="">Seleccione el libro</option>
                                <?php $__currentLoopData = $libros; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $libro): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($id); ?>"><?php echo e($libro); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="prestado_a" class="col-lg-3 control-label requerido">Prestado a</label>
                        <div class="col-lg-8">
                        <input type="text" name="prestado_a" id="prestado_a" class="form-control" value="<?php echo e(old('prestado_a')); ?>" required/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="fecha_prestamo" class="col-lg-3 control-label requerido">fecha_prestamo</label>
                        <div class="col-lg-8">
                        <input type="text" name="fecha_prestamo" id="fecha_prestamo" class="form-control" value="<?php echo e(old('fecha_prestamo', date('Y-m-d'))); ?>" required/>
                        </div>
                    </div>
                </div>
                <div class="box-footer">
                    <div class="col-lg-3"></div>
                    <div class="col-lg-6">
                        <?php echo $__env->make('includes.boton-form-crear', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make("theme.$theme.layout", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Laravel\adminimprenta\resources\views/libro-prestamo/crear.blade.php ENDPATH**/ ?>