{% 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>Date From</label>
                                    <input type="text" class="date" id="date_from" value="{{ 'now'|date('m/d/Y') }}" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Date To</label>
                                    <input type="text" class="date" id="date_to" value="{{ 'now'|date('m/d/Y') }}" />
                                </div>
                            </div>
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>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>Branch</label>
                                    <select class="js-multiple" 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>Status</label>
                                    <select name="" id="fax_status">
                                        <option value="null">All Status</option>
                                        {% for statuses, value in status %}
                                            <option value="{{ value }}">{{ statuses }}</option>
                                        {% endfor %}
                                    </select>
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Category</label>
                                    <select name="" id="fax_category">
                                        {% for categories, value in category %}
                                            <option value="{{ value }}">{{ categories }}</option>
                                        {% endfor %}
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    {%
                        include '@RxConnexion/Report/buttons.html.twig'
                        with {
                        'preview_url': 'main/report/report_fax/preview',
                        'export_to_pdf_url': 'main/report/report_fax/export_to_pdf',
                        'export_to_excel_url': 'main/report/report_fax/export_to_excel',
                        'paramsIds': 'date_from|date_to|form-company-id|form-branch-id|fax_status|fax_category'
                    }
                    %}
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        fax.settings.branch_autocompleteUrl = '{{ path('health_facility_autocomplete') }}';
        fax.settings.company_autocompleteUrl = '{{ path('company_autocomplete') }}';
        jQ(document).ready(function(){
            jQ('.js-multiple, .js-multiple-company').select2();
            report.init('{{ app.environment }}');
            fax.init();
        });
        //]]>
    </script>
{% endblock %}