{% extends '@RxConnexion/Admin/content.html.twig' %}
{% block content %}
    <style>
        #pdf {
            display: none;
        }
        #excel {
            display: none;
        }
    </style>
    <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">
                            {#<span>Referral Date</span>#}
                            <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="" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Date To</label>
                                    <input type="text" class="date" id="date_to" value="" />
                                </div>
                            </div>
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Received Date From</label>
                                    <input type="text" class="date" id="receive_date_from" value="" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Received Date To</label>
                                    <input type="text" class="date" id="receive_date_to" value="" />
                                </div>
                            </div>
                            <div class="row max-width-initial">
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Upload Date From</label>
                                    <input type="text" class="date" id="upload_date_from" value="" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Upload Date To</label>
                                    <input type="text" class="date" id="upload_date_to" value="" />
                                </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-branch" name="" id="branches" multiple="multiple" style="">
                                        {% for branches in branch %}
                                            <option value="{{ branches.id }}">{{ branches.description }}</option>
                                        {% endfor %}
                                    </select>
                                    {#<input type="text" id="form-branch" />#}
                                    <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>File Type</label>
                                    <select class="js-multiple-file-types" name="" id="fileTypes" multiple="multiple" style="">
                                        {% for fileTypes in fileType %}
                                            <option value="{{ fileTypes.id }}">{{ fileTypes.description }}</option>
                                        {% endfor %}
                                    </select>
                                    {#<input type="text" id="form-branch" />#}
                                    <input type="hidden" id="form-fileType-id" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                </div>
                            </div>
                        </div>
                    </div>
                    {%
                        include '@RxConnexion/Report/buttons.html.twig'
                        with {
                        'preview_url': 'main/report/file_report/preview',
                        'export_to_pdf_url': '',
                        'export_to_excel_url': '',
                        'paramsIds': 'date_from|date_to|receive_date_from|receive_date_to|upload_date_from|upload_date_to|form-company-id|form-branch-id|form-fileType-id'
                    }
                    %}
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        jQ(document).ready(function(){
            jQ('.js-multiple-branch, .js-multiple-company, .js-multiple-file-types').select2();
            report.init('{{ app.environment }}');
            file.init();
        });
        //]]>
    </script>
{% endblock %}