{% extends 'base.html' %}

{% block title %}{{ block.super }}: Overview{% endblock %}

{% block progress %}{% include "partials/dashnav.html" with active_page=active_page %}{% endblock %}

{% block container_col %}dashboard-content{% endblock %}

{% block content %}
    <h1>Filing Completed</h1>
    {% if how_to_file == 'Online' %}
        {% if final_filing_submitted %}
            <p>
                You have successfully completed filing online.
            </p>
            <p>
                <b>Your {% include "partials/tooltips/online_package_number.html" with with_cso=True %} is {{ final_filing_package_number }}</b>
            </p>
        {% else %}
            <p>
                You still have to complete your filing with the Court Registry.
                Go to the <a href="{% url 'dashboard_nav' 'final_filing' %}">Final Filing</a> step.
            </p>
            <p>
                <b>Once filed, you will receive a {% include "partials/tooltips/online_package_number.html" with with_cso=True %}</b>
            </p>
        {% endif %}
        <p>
            Once your filing has been reviewed by the {% include "partials/tooltips/court_registry.html" %}, you will receive an e-mail confirmation
            of your filing.
            This e-mail will include a {% include "partials/tooltips/court_file_number.html" %}, please keep this number for your records and use it
            if filing any additional documents.
        </p>
        {% if final_filing_submitted %}
            <div class="question-well">
                <h3>Filing Status</h3>
                <p>
                    You will receive e-mails from the system as your filing is processed by the Court Registry. You can also check here to see the
                    status of your filing:
                </p>
                <p class="no-margin-bottom">
                    Current Filing Status:
                </p>
                <ul class="no-bullets">
                    <li>
                        <b>{{ final_filing_status }}</b> -
                        {% if final_filing_status == 'Submitted' %}
                            Your filing has been submitted to the Court Registry and will be reviewed soon.
                        {% else %}
                            No filing status description
                        {% endif %}
                    </li>
                </ul>
                <p class="no-margin-bottom">
                    You can view the following items at any time:
                </p>
                <ul class="no-margin-bottom">
                    <li><a href="{{ final_filing_receipt_link }}" target="_blank">Your eFiling Receipt</a> on the CSO eFiling Hub</li>
                    <li>The <a href="{{ final_filing_package_link }}" target="_blank">complete package of all documents</a>
                        you have filed at the CSO eFiling Hub
                    </li>
                </ul>
            </div>
        {% endif %}
    {% endif %}
    <div class="question-well">
        <h3>What happens at the registry?</h3>
        <p>
            The court registry staff will check your documents to make sure they've been completed properly.
        </p>
        <p>
            If you're not sure whether you've filled out the documents correctly, get some
            <a href="https://familylaw.lss.bc.ca/help/who_LegalAdvice.php" target="_blank">legal advice</a> before you file your documents — from
            <a href="https://familylaw.lss.bc.ca/help/who_FamilyDutyCounsel.php" target="_blank">family duty counsel</a>
            or (in Vancouver) from the Vancouver
            <a href="https://familylaw.lss.bc.ca/help/jacSelfHelpAndInfoServices.php" target="_blank">Justice Access Centre</a> Self-Help and
            Information Services.
        </p>
        <p>
            If the court registry is satisfied that your documents are in order, they will stamp the documents with the date, the court seal, and a
            file number.
        </p>
        <p>
            You now have a divorce file open in the Supreme Court.
        </p>
    </div>
    <div class="question-well">
        <h3>Next Steps</h3>
        <p>
            Once your divorce has been reviewed, you will receive an e-mail from the court registry with information about the next steps.
            If your divorce is approved, you can move to the next step and order a certificate of divorce.
        </p>

        <p class="add-top-margin">
            <b>Haven’t Heard Back?</b>
        </p>
        <p>
            If you don’t hear back within 30 days from the court registry, please contact CSO Online Support at
            <a href="mailto:Courts.CSO@gov.bc.ca" target="_blank">Courts.CSO@gov.bc.ca</a>
            and include your {% include "partials/tooltips/court_file_number.html" %} / Filing Location
            or {% include "partials/tooltips/online_package_number.html" %}.
        </p>
    </div>
{% endblock %}

{% block backToDashboard %}
    <!-- no back to dashboard -->
{% endblock %}

{% block formBack %}{% url 'dashboard_nav' 'final_filing' %}{% endblock %}
{% block formNext %}{% url 'dashboard_nav' 'order_certificate' %}{% endblock %}

{% block sidebarText %}
    <h3>What do I have to do next?</h3>
    <p>
        <b><i>I have manually submitted all documents</i></b> (except the Certificate of Divorce)
        at the registry counter:
    </p>
    <ul>
        <li>
            You will need to wait for the registry to notify you indicating if your documents
            have been accepted and the divorce order granted, or if corrections are required.
        </li>
        <li>
            If you have received your filed order for divorce and 31 days has passed, you can
            now submit your request for a Certificate of Divorce.
        </li>
        <li>
            If corrections are required, you will need to make the corrections to the documents
            noted by the registry and resubmit them.
        </li>
    </ul>
    <p>
        <b><i>I have submitted all documents online</i></b> (except the Certificate of Divorce):
    </p>
    <ul>
        <li>
            You will be notified by email when your documents have been reviewed and processed
            by registry staff. The notification will indicate whether your documents have been
            filed or if corrections are needed for filing.
        </li>
        <li>
            If the documents have been filed, you will be able to access the filed documents using
            the link in the email notification. You will want to confirm that the order for divorce
            is filed and then you can proceed to submit your Certificate of Divorce.
        </li>
        <li>
            If corrections are required, you will need to make the corrections to your document(s)
            and then resubmit to the registry.
        </li>
    </ul>
{% endblock %}