{% extends '@RxConnexion/Admin/content.html.twig' %}
{% block content %}
    <div class="row max-width-initial">
        <div class="small-12 columns">
            <div class="content-container">
                <div class="content-container-content">
                    <div class="row max-width-initial">
                        <div class="large-12 columns">
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Patient Company</label>
                                    <select class="js-multiple-company" name="" id="companies" multiple="multiple" style="">
                                        {% for companies in company %}
                                            <option value="{{ companies.id }}">{{ companies.description }}</option>
                                        {% endfor %}
                                    </select>
                                    <input type="hidden" id="form-company-id" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Patient Branch</label>
                                    <select class="js-multiple-branches" name="" id="branches" multiple="multiple" style="">
                                        {% for branches in branch %}
                                            <option value="{{ branches.id }}">{{ branches.description }}</option>
                                        {% endfor %}
                                    </select>
                                    <input type="hidden" id="form-branch-id" />
                                </div>
                            </div>
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Clinician</label>
                                    <input type="text" id="form-provider-fullName" />
                                    <input type="hidden" id="form-provider-id" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Type</label>
                                    <select name="" id="form-type">
                                        <option value="All">All</option>
                                        <option value="Long Term Rental">Long Term Rental</option>
                                        <option value="Rent to Own">Rent to Own</option>
                                        <option value="Warranty">Warranty</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    {%
                        include '@RxConnexion/Report/buttons.html.twig'
                        with {
                        'preview_url': 'main/report/report_rent_to_own_long_term_rental/preview',
                        'export_to_pdf_url': 'main/report/report_rent_to_own_long_term_rental/export_to_pdf',
                        'export_to_excel_url': 'main/report/report_rent_to_own_long_term_rental/export_to_excel',
                        'paramsIds': 'form-company-id|form-branch-id|form-provider-id|form-type'
                    }
                    %}
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        jQ('.js-multiple-branches, .js-multiple-company').select2();
        jQ(document).ready(function(){
            rent_to_own_long_term_rental.settings.provider_autocomplete_url = '{{ path('provider_autocomplete') }}';
            report.init('{{ app.environment }}');
            rent_to_own_long_term_rental.init();
        });
        //]]>
    </script>
{% endblock %}