<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>PERSONAL DOCENTE</h3>
        </div>
    </div>

    <div class="clearfix"></div>

    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_title">
                    <h2>Agregar Líneas a Docente </h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">
                    <form id="form-update" data-parsley-validate class="form-horizontal form-label-left">

                        <input type='hidden' class='idPersonal' name='idPersonal' id='idPersonal'
                            name='idPersonal'value='{{ $personal->id }}'>

                        <div class="form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="nombre">Nombre </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="text" id="nombre" name="nombre" disabled
                                    value="{{ ucwords(mb_strtolower( $personal->nombre . ' ' . $personal->apellido_paterno . ' ' . $personal->apellido_materno)) }}"
                                    class="form-control col-md-7 col-xs-12">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="linea">Líneas de
                                investigación
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <select id="linea" name="linea" required="required"
                                    class="form-control col-md-7 col-xs-12">
                                    <option value="">--Seleccione--</option>
                                    @foreach ($lineas as $linea)
                                        <option value="{{ $linea->id }}">{{ $linea->linea }}</option>
                                    @endforeach
                                </select>
                                <!--<input type="text" id="carrera" name="carrera" required="required" class="form-control col-md-7 col-xs-12">-->
                            </div>
                            <div class="col-md-1 col-sm-1 col-xs-12">
                                <button type="button" class="btn btn-block btn-dark" onClick="mas_lineas()"><span
                                        class="fa fa-plus-circle"></span>
                                </button>
                            </div>
                        </div>
                        <div id="contenedor_lineas">
                        </div>
                        <div class="ln_solid"></div>
                        <div class="row">
                            <div class="col-md-3 col-sm-12"></div>
                            <div class="col-md-6 col-sm-12 col-xs-12">
                                <div class="row">
                                    <div class="col-md-6 col-sm-6 col-xs-6"><button type="button"
                                            class="btn btn-success btn-block" onclick="add_lineas_docente(this.form);"><i
                                                class="fa fa-pencil"></i> Guardar</button></div>
                                    <div class="col-md-6 col-sm-6 col-xs-6"><button type="button" onclick="listar_docentesLinea();"
                                            class="btn btn-dark btn-block"><i class="fa fa-times"></i> Cancelar</button>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-12"></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
