<h3>Gestión de email institucional </h3>
<br>
<form method="POST" action="{{ URL::to('/') }}/forms/store/email" accept-charset="UTF-8">
    <input type="hidden" name="_token" value="{{ csrf_token() }}">

    <input type="hidden" name="type" value="email">

    <h4><i class="fa fa-pencil-square-o" aria-hidden="true"></i>  Requerimiento</h4>

    <hr>
    <div class="col-md-12">

        <div class="form-group">
            <select name="email_request" id="email_request" style="width:100% !important">
                <option value="">Seleccionar Requerimiento</option>
                <option value="registration" @if ("registration" == old('email_request')) selected="selected" @endif>Alta de cuenta</option>
                <option value="laundering" @if ("laundering" == old('email_request')) selected="selected" @endif>Blanqueo de contraseña</option>
                <option value="delete" @if ("delete" == old('email_request')) selected="selected" @endif>Baja</option>
            </select>
        </div>
    </div>

    <hr>
    <br>
    <br>
    <br>

    <h4><i class="fa fa-pencil-square-o" aria-hidden="true"></i> &nbsp;Seleccionar Perfil</h4>

    <hr>
    <div class="col-md-12">

        @include('task.forms.shared.profile-select-create')
    </div>

    <hr>
    <br>
    <br>
    <br>
    <h4><i class="fa fa-pencil-square-o" aria-hidden="true"></i> &nbsp;Datos de la cuenta de Email Institucional</h4>

    <hr>

    <div class="col-md-12"><h4></h4>

        <div class="form-group" id="name">
            <label for="">Nombre/s</label><br>
            <input type="text" name="name" value="{{ old('name') }}">
        </div>
        <div class="form-group" id="surname">
            <label for="">Apellido/s</label><br>
            <input type="text" name="surname" value="{{ old('surname') }}">
        </div>

        <div class="form-group" id="name_clean" style="display: none;">
            <label for="">Nombre de la cuenta a blanquear</label><br>
            <input type="text" name="name_clean" value="{{ old('name_clean') }}">
        </div>

        <div class="form-group" id="personalemail">
            <label for="" id="label_email_personal">Email Personal</label>
            <label for="" id="label_email_personal_clean" style="display: none;">Email Personal para recibir los datos del blanqueo</label>
            <br>
            <input type="text" name="personalemail" value="{{ old('personalemail') }}">
            <p id="" style="font-size:12px;color:#969696;" class="">Ingrese una cuenta de correo existente en la que recibirá los datos de acceso a la cuenta institucional.</p>
        </div>

        <div class="form-group" id="observation" style="display:none;">
            <label for="">Aclaración u observación</label><br>
            {{--<input type="text" name="deleteemail" value="{{ old('deleteemail') }}">--}}
            <textarea rows="4" cols="50" name="observation" value="{{ old('observation') }}"></textarea>
        </div>

        {{--<div class="form-group">--}}
        {{--<label for="adjuntos" class="control-label">Adjuntos:</label><br>--}}
        {{--<span class="btn btn-success fileinput-button">--}}
        {{--<i class="icon-plus icon-white"></i>--}}
        {{--<span>Elegir Archivos</span>--}}
        {{--<input id="fileupload" multiple type="file" name="file" data-url="{{ url('upload') }}" style="display: inline;">--}}
        {{--</span>--}}
        {{--<ul id="file-upload-progress" class="list-unstyled">--}}

        {{--</ul>--}}
        {{--<input type="hidden" name="jsonIdAttachments" id="jsonIdAttachments" value="">--}}
        {{--<progress class="barProgress" max="100" value="0" style="display: none;"><span id="textProgress">22</span></progress>--}}
        {{--<ul id="file-upload-list" class="list-unstyled">--}}

        {{--</ul>--}}
        {{--</div>--}}
        <div class="form-group" id="deleteemail" style="display:none;">
            <label for="">Mail a eliminar:</label><br>
            {{--<input type="text" name="deleteemail" value="{{ old('deleteemail') }}">--}}
            <input type="text" name="deleteemail" value="{{ old('deleteemail') }}"></input>
        </div>
        <div class="form-group" id="description" style="display:none;">
            <label for="">Observaciones</label><br>
            {{--<input type="text" name="deleteemail" value="{{ old('deleteemail') }}">--}}
            <textarea rows="4" cols="50" name="description" value="{{ old('description') }}"></textarea>
        </div>

        {{--<div class="form-group">--}}

        {{--<label for="email_deadline" class="control-label">Deadline:</label>--}}
        {{--<input class="form-control" name="email_deadline" type="text" id="deadline" value="{{ old('email_deadline') }}">--}}
        {{--</div>--}}

        <hr>
        <div class="form-group">  <!-- Terms Checkbox !-->
            <div class="checkbox">
                <label>
                    <input type="checkbox" class="draft" name="draft" {{ old('draft') == '1' ? 'checked="checked"' : '' }}> Guardar como borrador
                </label>
                <p id="" style="font-size:12px;color:#969696;" class="">Si envía el formulario con este campo
                    tildado, el contenido del formulario se guardará pero no será enviado para su procesamiento.</p>

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

    <hr>

    <input type="button" class="form-control" value="Enviar" id="send" onclick="form.submit();document.getElementById('send').style.display='none';">
{{--    <input type="submit" class="form-control" value="Enviar" id="send">--}}

</form>