<?php $__env->startSection('content'); ?>

    <div class="portlet light portlet-fit portlet-datatable bordered">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green sbold uppercase"> Configuraci&oacute;n de Pr&eacute;stamos </span>
            </div>
        </div>
        <div class="portlet-body">
            <div class="tabbable-custom ">
                <ul class="nav nav-tabs ">
                    <li class="active">
                        <a href="#tab_5_1" data-toggle="tab" aria-expanded="true"> Para Administradores </a>
                    </li>
                    <li class="">
                        <a href="#tab_5_2" data-toggle="tab" aria-expanded="false"> Para Profesores </a>
                    </li>
                    <li class="">
                        <a href="#tab_5_3" data-toggle="tab" aria-expanded="false"> Para Alumnos </a>
                    </li>
                </ul>
                <div class="tab-content">

                    <div class="tab-pane active" id="tab_5_1">
                        <div class="portlet light portlet-fit portlet-form bordered">
                            <div class="portlet-title col-lg-12 col-xs-12" style="padding: 25px 25px 25px 25px;">
                                <div class="caption">
                                    <span class="caption-subject font-green sbold uppercase"> Configuraci&oacute;n de pr&eacute;stamos para Administradores </span>
                                </div>
                            </div>

                            <?php echo e(Form::model($prestamoadm, array('route' => array('prestamo.rol', $prestamoadm->id), 'id'=>'frmConfADM', 'class'=>'form-horizontal', 'style'=>'padding: 5px 5px 5px 5px;', 'method' => 'POST'))); ?>


                            <div class="form-group col-lg-12 hide">
                                <?php echo Form::text('rolid', null, array('placeholder' => 'RolID','class' => 'form-control')); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="nDiasReserva">N&uacute;mero de d&iacute;as de reserva:</label>
                                <?php echo Form::number('cant_dias_reserva', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6  placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="nDiasPrestamo">N&uacute;mero de d&iacute;as de prestamo:</label>
                                <?php echo Form::number('cant_dias_prestamo', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6  placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="nLibrosDia">Cantidad de libros por d&iacute;a:</label>
                                <?php echo Form::number('cant_libros_dia', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6  placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="moraPorDia">Mora por d&iacute;a: S/</label>
                                <?php echo Form::text('moraxdia', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6  placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="moraPorDia">D&iacute;as de
                                    penalidad: </label>
                                <?php echo Form::number('cant_dias_penalidad', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6  placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="center-block" style="text-align: center;">
                                <button type="submit" class="btn green">Guardar</button>
                            </div>

                            <?php echo Form::close(); ?>


                        </div>
                    </div>
                    <div class="tab-pane" id="tab_5_2">
                        <div class="portlet light portlet-fit portlet-form bordered">
                            <div class="portlet-title col-lg-12 col-xs-12" style="padding: 25px 25px 25px 25px;">
                                <div class="caption">
                                    <span class="caption-subject font-green sbold uppercase"> Configuraci&oacute;n de pr&eacute;stamos para profesores </span>
                                </div>
                            </div>

                            <?php echo e(Form::model($prestamoprf, array('route' => array('prestamo.rol', $prestamoprf->id), 'class'=>'form-horizontal', 'id'=>'frmConfigProfesor', 'style'=>'padding: 5px 5px 5px 5px;', 'method' => 'POST'))); ?>


                            <div class="form-group col-lg-12 hide">
                                <?php echo Form::text('rolid', null, array('placeholder' => 'RolID','class' => 'form-control')); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="nDiasReserva">N&uacute;mero de d&iacute;as de reserva:</label>
                                <?php echo Form::number('cant_dias_reserva', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6 placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="nDiasPrestamo">N&uacute;mero de d&iacute;as de prestamo:</label>
                                <?php echo Form::number('cant_dias_prestamo', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6 placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="nLibrosDia">Cantidad de libros por d&iacute;a:</label>
                                <?php echo Form::number('cant_libros_dia', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6 placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="moraPorDia">Mora por d&iacute;a: S/</label>
                                <?php echo Form::text('moraxdia', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6 placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="moraPorDia">D&iacute;as de
                                    penalidad: </label>
                                <?php echo Form::number('cant_dias_penalidad', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6 placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="center-block" style="text-align: center;">
                                <button type="submit" class="btn green">Guardar</button>
                            </div>
                            <?php echo Form::close(); ?>


                        </div>
                    </div>
                    <div class="tab-pane" id="tab_5_3">
                        <div class="portlet light portlet-fit portlet-form bordered">
                            <div class="portlet-title col-lg-12 col-xs-12" style="padding: 25px 25px 25px 25px;">
                                <div class="caption">
                                    <span class="caption-subject font-green sbold uppercase"> Configuraci&oacute;n de pr&eacute;stamos para alumnos </span>
                                </div>
                            </div>

                            <?php echo e(Form::model($prestamoalum, array('route' => array('prestamo.rol', $prestamoalum->id), 'class'=>'form-horizontal', 'style'=>'padding: 5px 5px 5px 5px;', 'method' => 'POST', 'id' => 'frmConfigAlumno'))); ?>


                            <div class="form-group col-lg-12 hide">
                                <?php echo Form::text('rolid', null, array('placeholder' => 'RolID','class' => ' placeholder-no-fix')); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="nDiasReserva">N&uacute;mero de d&iacute;as de reserva:</label>
                                <?php echo Form::number('cant_dias_reserva', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6 placeholder-no-fix',"maxlength"=>"10",'id' => 'cant_dias_reserva')); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="nDiasPrestamo">N&uacute;mero de d&iacute;as de prestamo:</label>
                                <?php echo Form::number('cant_dias_prestamo', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6 placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="nLibrosDia">Cantidad de libros por d&iacute;a:</label>
                                <?php echo Form::number('cant_libros_dia', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6 placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="moraPorDia">Mora por d&iacute;a: S/</label>
                                <?php echo Form::text('moraxdia', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6 placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="form-group col-lg-12">
                                <label class="control-label col-lg-4 col-xs-6" for="moraPorDia">D&iacute;as de
                                    penalidad: </label>
                                <?php echo Form::number('cant_dias_penalidad', null, array('placeholder' => '','class' => 'col-lg-6 col-xs-6 placeholder-no-fix',"maxlength"=>"10")); ?>

                            </div>

                            <div class="center-block" style="text-align: center;">
                                <button type="submit" class="btn green">Guardar</button>
                            </div>
                            <?php echo Form::close(); ?>


                        </div>
                    </div>

                    <?php echo $__env->make('alerts.index', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

                </div>

            </div>
        </div>

    </div>


<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(asset('plugins/bootstrap-datepicker/locales/bootstrap-datepicker.es.min.js')); ?>" type="text/javascript"></script>

    <script>

        $("#frmConfADM").validate({
            rules: {
                cant_dias_reserva:{
                    required:true,
                    pattern: '^[1-9]*$'
                },
                cant_dias_prestamo:{
                    required:true,
                    pattern: '^[1-9]*$'
                },
                cant_libros_dia: {
                    required:true,
                    pattern: '^[1-9]*$'
                },
                moraxdia: {
                    required:true,
                    pattern: '^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$'
                },
                cant_dias_penalidad: {
                    required:true,
                    pattern: '^[1-9]*$'
                },
            }
        });
        $("#frmConfigProfesor").validate({
            rules: {
                cant_dias_reserva:{
                    required:true,
                    pattern: '^[1-9]*$'
                },
                cant_dias_prestamo:{
                    required:true,
                    pattern: '^[1-9]*$'
                },
                cant_libros_dia: {
                    required:true,
                    pattern: '^[1-9]*$'
                },
                moraxdia: {
                    required:true,
                    pattern: '^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$'
                },
                cant_dias_penalidad: {
                    required:true,
                    pattern: '^[1-9]*$'
                },
            }
        });
        $("#frmConfigAlumno").validate({
            rules: {
                cant_dias_reserva:{
                    required:true,
                    pattern: '^[1-9]*$'
                },
                cant_dias_prestamo:{
                    required:true,
                    pattern: '^[1-9]*$'
                },
                cant_libros_dia: {
                    required:true,
                    pattern: '^[1-9]*$'
                },
                moraxdia: {
                    required:true,
                    pattern: '^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$'
                },
                cant_dias_penalidad: {
                    required:true,
                    pattern: '^[1-9]*$'
                },
            }
        });

    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('template.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>