{% extends 'emails/base_email_template.html' %}
{% load i18n %}

{% block title %}{% trans "User Onboarding Completed - Al Hammadi Hospital" %}{% endblock %}
{% block preheader %}{% trans "A new user has completed onboarding and is now active." %}{% endblock %}

{% block content %}
<p style="margin: 0 0 20px;">
    {% trans "A new user has successfully completed the onboarding process and is now active in the PX360 system." %}
</p>

<p style="margin: 0 0 5px;"><strong>{% trans "Name:" %}</strong> {{ user.get_full_name|default:_("Not provided") }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Email:" %}</strong> {{ user.email }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Role:" %}</strong> {{ role_display|default:_("Not assigned") }}</p>
<p style="margin: 0 0 5px;"><strong>{% trans "Department:" %}</strong> {{ user.department.name|default:_("Not assigned") }}</p>
<p style="margin: 0 0 20px;"><strong>{% trans "Completed At:" %}</strong> {{ completed_at|date:"Y-m-d H:i" }}</p>

<p style="margin: 0 0 5px;"><strong>{% trans "Next Steps:" %}</strong> {% trans "The user can now access PX360. You may want to:" %}</p>
<p style="margin: 0 0 5px;">- {% trans "Welcome them to the team" %}</p>
<p style="margin: 0 0 5px;">- {% trans "Provide role-specific training if needed" %}</p>
<p style="margin: 0 0 5px;">- {% trans "Assign initial tasks or responsibilities" %}</p>
<p style="margin: 0 0 25px;">- {% trans "Introduce them to relevant team members" %}</p>

{% if user_detail_url %}
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
    <tr>
        <td align="center">
            <a href="{{ user_detail_url }}"
               style="display: inline-block; padding: 12px 32px; font-size: 16px; font-weight: 600; color: #ffffff; text-decoration: none; border-radius: 6px; background-color: #005696;">
                {% trans "View User Profile" %}
            </a>
        </td>
    </tr>
</table>
{% endif %}
{% endblock %}
