{% 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>Patient Company</label>
                                    <input type="text" id="form-company-desc" />
                                    <input type="hidden" id="form-company-id" />
                                </div>
                                <div class="large-6 medium-6 small-12 columns">
                                    <label>Patient Branch</label>
                                    <input type="text" id="form-branch-desc" />
                                    <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>Patient</label>
                                    <input type="text" id="form-patient-fullName" />
                                    <input type="hidden" id="form-patient-id" />
                                </div>
                            </div>
                        </div>
                    </div>
                    {%
                        include '@RxConnexion/Report/buttons.html.twig'
                        with {
                        'preview_url': 'main/report/report_payment_without_invoice/preview',
                        'export_to_pdf_url': 'main/report/report_payment_without_invoice/export_to_pdf',
                        'export_to_excel_url': 'main/report/report_payment_without_invoice/export_to_excel',
                        'paramsIds': 'date_from|date_to|form-company-id|form-branch-id|form-patient-id'
                    }
                    %}{#|form-branch-id|form-payType|form-status#}
                </div>
            </div>
        </div>
    </div>
    {% include '@RxConnexion/Admin/js.html.twig' %}
    <script language="javascript">
        //<![CDATA[
        payment_without_invoice.settings.patient_autocompleteUrl = '{{ path('patient_autocomplete') }}';
        payment_without_invoice.settings.company_autocompleteUrl = '{{ path('company_autocomplete') }}';
        payment_without_invoice.settings.branch_autocompleteUrl = '{{ path('health_facility_autocomplete') }}';

        jQ(document).ready(function(){
            report.init('{{ app.environment }}');
            payment_without_invoice.init();
        });
        //]]>
    </script>
{% endblock %}