{% extends 'portal_base.html' %} {% load static i18n mytags crispy_forms_tags %} {% block title %}{% trans "My Dashboard" %} - ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}
{# Header: Larger, more dynamic on large screens. Stacks cleanly on mobile. #}

{% trans "Your Candidate Dashboard" %}

{% comment %} {% trans "Update Profile" %} {% endcomment %}
{# Candidate Quick Overview Card: Use a softer background color #}
{% trans 'Profile Picture' %}

{{ candidate.full_name|default:"Candidate Name" }}

{{ candidate.email }}

{# ================================================= #} {# MAIN TABBED INTERFACE #} {# ================================================= #}
{# Tab Navigation: Used nav-scroll for responsiveness #} {# Tab Content #}

{% trans "Basic Information" %}

  • {% trans "First Name" %}
    {{ candidate.first_name|default:"N/A" }}
  • {% trans "Last Name" %}
    {{ candidate.last_name|default:"N/A" }}
  • {% if candidate.middle_name %}
  • {% trans "Middle Name" %}
    {{ candidate.middle_name }}
  • {% endif %}
  • {% trans "Email" %}
    {{ candidate.email|default:"N/A" }}

{% trans "Contact Information" %}

  • {% trans "Phone" %}
    {{ candidate.phone|default:"N/A" }}
  • {% if candidate.address %}
  • {% trans "Address" %}
    {{ candidate.address|linebreaksbr }}
  • {% endif %} {% if candidate.linkedin_profile %}
  • {% trans "LinkedIn Profile" %}
    {% trans "View Profile" %}
  • {% endif %}

{% trans "Personal Details" %}

  • {% trans "Date of Birth" %}
    {{ candidate.date_of_birth|date:"M d, Y"|default:"N/A" }}
  • {% trans "Gender" %}
    {{ candidate.get_gender_display|default:"N/A" }}
  • {% trans "Nationality" %}
    {{ candidate.get_nationality_display|default:"N/A" }}

{% trans "Professional Information" %}

    {% if candidate.user.designation %}
  • {% trans "Designation" %}
    {{ candidate.user.designation }}
  • {% endif %} {% if candidate.gpa %}
  • {% trans "GPA" %}
    {{ candidate.gpa }}
  • {% endif %}
{% comment %}
{% trans "Use the 'Update Profile' button above to edit these details." %}
{% endcomment %} {% comment %}
{% endcomment %} {% comment %}

{% trans "Quick Actions" %}

{% endcomment %}

{% trans "Application Tracking" %}

{% if applications %}
{% for application in applications %}
{{ application.job.title }}

{% trans "Applied" %}: {{ application.applied_date|date:"d M Y" }}

{% trans "Current Stage" %} {{ application.stage }}
{% trans "Status" %} {% if application.is_active %} {% trans "Active" %} {% else %} {% trans "Closed" %} {% endif %}
{% endfor %}
{% else %}
{% trans "You haven't submitted any applications yet." %}
{% trans "View Available Jobs" %}
{% endif %}

{% trans "My Uploaded Documents" %}

{% trans "You can upload and manage your resume, certificates, and professional documents here. These documents will be attached to your applications." %}


{# Document List #}
    {% for document in documents %}
  • {{ document.document_type|title }} ({{ document.file.name|split:"/"|last }})
    {% trans "Uploaded:" %} {{ document.uploaded_at|date:"d M Y" }}
  • {% empty %}
  • {% trans "No documents uploaded yet." %}

  • {% endfor %}
{% comment %}

{% trans "Security & Preferences" %}

{% trans "Password Security" %}

{% trans "Update your password regularly to keep your account secure." %}

{% trans "Profile Image" %}

{% trans "Update your profile picture to personalize your account." %}

{% trans "To delete your profile, please contact HR support." %}
{% endcomment %}
{# ================================================= #}
{% endblock %}