<?php $__env->startSection('titulo'); ?>
    Productos
<?php $__env->stopSection(); ?>

<?php $__env->startSection("styles"); ?>
<link href="<?php echo e(asset("assets/js/bootstrap-fileinput/css/fileinput.min.css")); ?>" rel="stylesheet" type="text/css"/>
<?php $__env->stopSection(); ?>

<?php $__env->startSection("scriptsPlugins"); ?>
<script src="<?php echo e(asset("assets/js/bootstrap-fileinput/js/fileinput.min.js")); ?>" type="text/javascript"></script>
<script src="<?php echo e(asset("assets/js/bootstrap-fileinput/js/locales/es.js")); ?>" type="text/javascript"></script>
<script src="<?php echo e(asset("assets/js/bootstrap-fileinput/themes/fas/theme.min.js")); ?>" type="text/javascript"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection("scripts"); ?>
<script src="<?php echo e(asset("assets/pages/scripts/libro/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">Crear Producto</h3>
                <a href="<?php echo e(route('producto')); ?>" class="btn btn-info btn-sm pull-right">Volver al listado</a>
            </div>
            <form action="<?php echo e(route('guardar_producto')); ?>" 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="categoria_id" class="col-lg-3 control-label requerido">Categorias</label>
    <div class="col-lg-8">
    <select name="categoria_id" id="categoria_id" class="form-control" required>
                                <option value="">Seleccione la Categoría</option>
                                <?php $__currentLoopData = $datasCreate; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $menuCategoria): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                               
                                    <option value="<?php echo e($menuCategoria->id); ?>"><?php echo e($menuCategoria->nombre); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                            </div>
</div>

<div class="form-group">
    <label for="codigo" class="col-lg-3 control-label requerido">Código</label>
    <div class="col-lg-8">
    <input type="text" name="codigo" id="codigo" class="form-control" value="<?php echo e(old('codigo', $data->codigo ?? '')); ?>" required/>
    </div>
</div>

<div class="form-group">
    <label for="nombre" class="col-lg-3 control-label requerido">Nombre</label>
    <div class="col-lg-8">
    <input type="text" name="nombre" id="nombre" class="form-control" value="<?php echo e(old('nombre', $data->nombre ?? '')); ?>" required/>
    </div>
</div>

<div class="form-group">
    <label for="descripcion" class="col-lg-3 control-label">Descripción</label>
    <div class="col-lg-8">
    <input type="text" name="descripcion" id="descripcion" class="form-control" value="<?php echo e(old('descripcion', $data->descripcion ?? '')); ?>" />
    </div>
</div>

<div class="form-group">
    <label for="stock_minimo" class="col-lg-3 control-label requerido">Stock Mínimo</label>
    <div class="col-lg-8">
    <input type="text" name="stock_minimo" id="stock_minimo" class="form-control" value="<?php echo e(old('stock_minimo', $data->stock_minimo ?? '')); ?>" required/>
    </div>
</div>

<div class="form-group">
    <label for="foto" class="col-lg-3 control-label">Foto</label>
    <div class="col-lg-5">
        <input type="file" name="foto_up" id="foto" data-initial-preview="<?php echo e(isset($data->foto) ? Storage::url("imagenes/caratulas/$data->foto") : "http://www.placehold.it/200x150/EFEFEF/AAAAAA&text=Caratula+Libro"); ?>" accept="image/*"/>
    </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/producto/crear.blade.php ENDPATH**/ ?>