{% include "_pwa_head.html" %}
{% if not public_mode %} {% include "_global_user_menu.html" %} {% endif %} {% if not (public_mode and public_request_registered and public_request_id) %}
{{ "Sysmantech Support" if public_mode else "Onsite Call Management" }}

{{ "Request an Onsite Service Visit" if public_mode else ("Edit Onsite Call or Lead" if form_mode == 'edit' else "Create a New Onsite Call or Lead") }}

{% if public_mode %} Reliable Tech Support by Sysmantech — Fast, Professional, and Right at Your Doorstep. {% else %} {{ "Update the case details below and save the changes." if form_mode == 'edit' else "Staff can register onsite calls for their own branch, while admins can also create and share leads to other branches from the same screen." }} {% endif %}

{% if not public_mode %} {% endif %}
{% endif %} {% if not public_mode %} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% endwith %} {% endif %} {% if errors %}
{% for error in errors %}
{{ error }}
{% endfor %}
{% endif %} {% if public_mode and public_request_registered and public_request_id %}

Thank You for Your Submission!

Your request has been successfully registered.

Request ID: {{ public_request_id }}

Our support team will review your request and contact you shortly to assist you further.

We appreciate your trust in Sysmantech.

{% else %}

{{ "Customer Request Form" if public_mode else "Internal Call Entry" }}

{% if public_mode %} Fill in the issue details clearly so our support team can contact you and arrange the visit. {% else %} Choose Onsite to capture a service visit, or Lead to register a branch follow-up case with manual lead source tracking. {% endif %}

{% if not public_mode %}
Entry types: {{ call_type_choices|length }} Complaint types: {{ complaint_types|length }} Priority options: {{ priority_levels|length }}
{% endif %}
{% if form_mode == 'edit' and edit_call_id %} {% endif %} {% if not public_mode %}
Use Lead for branch-shared follow-up cases and Onsite for direct service jobs.
{% endif %}
{% if not public_mode %}
Required for onsite calls. Optional for leads.
{% endif %}
{% set district_options = [ 'Thiruvananthapuram', 'Kollam', 'Pathanamthitta', 'Alappuzha', 'Kottayam', 'Idukki', 'Ernakulam', 'Thrissur', 'Palakkad', 'Malappuram', 'Kozhikode', 'Wayanad', 'Kannur', 'Kasaragod' ] %}
{% if not public_mode and form_mode != 'edit' %}
{% if can_assign_on_create %}
Leave it blank or type a name to search branch coordinators from your database.
{% else %}
Engineer can be assigned later by admin or super admin after the case is created.
{% endif %} {% endif %} {% if not public_mode %}
Manual entry is enough. Example: Facebook Ads, Instagram, Referral, Walk-in.
{% endif %}
Upload up to 3 images or videos, 10 MB each. Media is automatically deleted 30 days after the case is Completed, Failed, or Cancelled.
{% if not public_mode %} Cancel {% endif %}
{% endif %}