<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>Plan de Estudios</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>Consultar un Plan de Estudios</h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">
                    <form id="form-nueva" data-parsley-validate class="form-horizontal form-label-left"
                        enctype="multipart/form-data">
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-md-right">
                                <label class="text-sm-left" for="claveof">Clave Oficial <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <input type="text" id="claveof" name="claveof" required="required"
                                    class="form-control form-control-sm" value="{{ $planE->claveOfi_planest }}">
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <div class="alert alert-danger" role="alert" id="a_claveof" style="display: none">
                                </div>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-md-right">
                                <label class="text-sm-left" for="iduni">Idetificador Único
                                    <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <input type="text" id="iduni" name="iduni" required="required"
                                    class="form-control form-control-sm" value="{{ $planE->iduni_planest }}">
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-md-right">
                                <label class="text-sm-left" for="nombre">Nombre
                                    <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <input type="text" id="nombre" name="nombre" required="required"
                                    class="form-control form-control-sm" value="{{ $planE->nombre_planest }}">
                            </div>

                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <div class="alert alert-danger" role="alert" id="a_nombre" style="display: none">
                                </div>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-md-right">
                                <label class="text-sm-left" for="carrera">Carrera
                                    <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <select id="carrera" name="carrera" required="required"
                                    class="form-control form-control-sm">
                                    <option value="">--Seleccione--</option>
                                    @foreach ($car as $c)
                                        @if ($c->id == $planE->id)
                                            <option value="{{ $c->id }}" selected>{{ $c->nombre }}</option>
                                        @else
                                            <option value="{{ $c->id }}">{{ $c->nombre }}</option>
                                        @endif
                                    @endforeach
                                </select>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-md-right">
                                <label class="text-sm-left" for="reticula">Retícula
                                    <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <input type="text" id="reticula" name="reticula" required="required"
                                    class="form-control form-control-sm" value="{{ $planE->reticula_planest }}">
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <div class="alert alert-danger" role="alert" id="a_reticula" style="display: none">
                                </div>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-md-right">
                                <label class="text-sm-left" for="nivesc">Nivel escolar
                                    <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <select id="nivesc" name="nivesc" required="required"
                                    class="form-control form-control-sm">
                                    <option value="">--Seleccione--</option>
                                    @if ($planE->nivesc_planest == 'LICENCIATURA')
                                        <option value="LICENCIATURA" selected>Licenciatura</option>
                                        <option value="MAESTRIA">Maestría</option>
                                    @else
                                        <option value="LICENCIATURA">Licenciatura</option>
                                        <option value="MAESTRIA" selected>Maestría</option>
                                    @endif
                                </select>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <div class="alert alert-danger" role="alert" id="a_nivesc" style="display: none">
                                </div>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-md-right">
                                <label class="text-sm-left" for="modalidad">Modalidad
                                    <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <input type="text" id="modalidad" name="modalidad" required="required"
                                    class="form-control form-control-sm" value="{{ $planE->modalidad_planest }}">
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <div class="alert alert-danger" role="alert" id="a_modalidad"
                                    style="display: none">
                                </div>
                            </div>
                        </div>
                        <div class="ln_solid"></div>
                        <div class="mb-1 row">
                            <div class="col-md-3 col-sm-12"></div>
                            <div class="col-md-6 col-sm-12">
                                <div class="row">
                                    <div class="col">
                                        <button type="button"
                                            onclick="update_planestudios(this.form, {{ $planE->cve_planest }})"
                                            class="btn btn-success btn-block" form="form-nueva"><i
                                                class=" fa fa-pencil"></i> Actualizar </button>
                                    </div>
                                    <div class="col">
                                        <button class="btn btn-dark btn-block" type="button"
                                            onclick="listado_planestudios()"><i class="fa fa-times"></i>
                                            Cancelar</button>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-12"></div>
                        </div>
                    </form>
                    <br>

                </div>
            </div>
        </div>
    </div>
</div>
