{%  extends "Home/base.html.twig" %} 
 
{% block content %} 
 
    <div class='container '> 
        <div class='row justify-content-center'> 
            <div class='col-lg-7 '> 
                <div class='page-content'> 
                    <span class="iq-tw-8" style="font-size: 20px; color: #1044e6;">Registration</span> 
                    <form role="form" action="{{ path('home_registration')}}" class="mt-4" method="POST" id='form'> 
                        {% if app.session.flashbag.has('success_messages') %} 
                            <div> 
                                {% for successMessage in app.session.flashbag.get('success_messages') %} 
                                    <div> 
                                        <small class="text-success">{{ successMessage }}</small> 
                                    </div> 
                                {% endfor %} 
                            </div> 
                        {% endif %} 
                        {% if app.session.flashbag.has('error_messages') %} 
                            <div> 
                                {% for errorMsg in app.session.flashbag.get('error_messages') %} 
                                    <div> 
                                        <small class="text-danger">{{ errorMsg }}</small> 
                                    </div> 
                                {% endfor %} 
                            </div> 
                        {% endif %} 
                        <div class="row"> 
                            <div class="col-md-6"> 
                                <div class="form-floating"> 
                                    {{ form_widget(form.first_name) }} 
                                    <label for="lastName">First Name</label> 
                                </div> 
                            </div> 
                            <div class="col-md-6 mb-4"> 
                                <div class="form-floating mb-3"> 
                                    {{ form_widget(form.last_name) }} 
                                    <label for="lastName">Last Name</label> 
                                </div> 
                            </div> 
                        </div> 
                        <div class="row"> 
                            <div class="col-md mb-4"> 
                                <div class="form-floating mb-3"> 
                                    {{ form_widget(form.email , { 'value': refEmail }) }} 
 
                                    <label for="floatingInput">Email</label> 
                                </div> 
                            </div> 
                        </div> 
                        <div class="row"> 
                            <div class="col-md-6 mb-4"> 
                                <div class="form-floating mb-2"> 
                                    {{ form_widget(form.password.first) }} 
                                    <label for="Password">Password</label> 
                                </div> 
                            </div> 
                            <div class="col-md-6 mb-4"> 
                                <div class="form-floating mb-2"> 
                                    {{ form_widget(form.password.second) }} 
                                    <label for="confirmpassword">Confirm-password</label> 
                                </div> 
                            </div> 
                        </div> 
                        <div class="form-check d-flex  mb-2 text-white"> 
                            <input type="checkbox" class="form-check-input" required id="agree"> 
                            <label class="ms-2 form-check-label" for="agree" style="font-size: 12px; line-height: 18px;">I agree with the terms of 
                                                                                use</label> 
                        </div> 
                        <div class="form-check d-flex mb-2 mb-2 text-white"> 
                            <input type="checkbox" class="form-check-input" required id="agree2"> 
                            <label class="ms-2 form-check-label" for="agree2" style="max-width: 95%; font-size: 12px; line-height: 18px;"> 
                                I agree to receive the newsletter and transactional emails and i know i can easily unsubscribe at anytime. 
                            </label> 
                        </div> 
 
                        {{ form_widget(form._token) }} 
                        {{ form_widget(form.id) }} 
                        <input type="hidden" name="recaptcha_token" id="recaptcha-token" value=""> 
                        <div class="text-center"> 
                            <button type="submit" class="btn btn-primary" id="submitButton">Register</button> 
                        </div> 
                        <div class='text-center text-white mt-3'> 
                            Already have an account? <a href='{{path("home_login")}}' class='text-primary'>Login here</a>  
                        </div> 
                    </form> 
                </div> 
            </div> 
        </div> 
 
 
        <section id="contact-us" class="contact-us"> 
 
            {% include 'Home/footer.html.twig' %} 
 
        </section> 
        {% include 'Home/login_modal.html.twig' %} 
    {% endblock %}