<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>Encabezado y Pie</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>Registrar un nuevo encabezado y pie</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-5 col-sm-6 col-xs-12  text-left text-sm-right">
                                <label class="text-sm-left" for="segU">Encabezado para los
                                    documentos <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-5 col-sm-12 col-xs-12">
                                <div class="input-group">
                                    @csrf
                                    <label for="encabezado" class="subir" id="basic-addon1">
                                        <i class="fa fa-cloud-upload"></i> Subir imagen
                                    </label>
                                    <input id="encabezado" name="encabezado"
                                        onchange="sacardocumentos('encabezado','imagen');" required type="file"
                                        accept="image/jpeg,image/png,image/webp" style='display: none;' />
                                    <input id="imagen" name="imagen" type="text" class="form-control"
                                        placeholder="No eligio imagen" aria-describedby="basic-addon1" readonly />
                                </div>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-5 col-sm-6 col-xs-12  text-left text-sm-right">
                                <label class="text-sm-left" for="segU">Pie
                                    para los documentos
                                    <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-5 col-sm-12 col-xs-12">
                                <div class="input-group">
                                    @csrf
                                    <label for="pie" class="subir" id="basic-addon1">
                                        <i class="fa fa-cloud-upload"></i> Subir imagen
                                    </label>
                                    <input id="pie" name="pie" onchange="sacardocumentos('pie','imagenT');"
                                        required type="file" accept="image/jpeg,image/png,image/webp"
                                        style='display: none;' />
                                    <input id="imagenT" name="imagenT" type="text" class="form-control"
                                        placeholder="No eligio imagen" aria-describedby="basic-addon1" readonly />
                                </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="add_encabezadopie(this.form)"
                                            class="btn btn-success btn-block" form="form-nueva"><i
                                                class=" fa fa-pencil"></i> Guardar </button>
                                    </div>
                                    <div class="col">
                                        <button class="btn btn-dark btn-block" type="button"
                                            onclick="listado_encabezadopie()"><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>
