{% extends "base.html" %}
{% from "_macros.html" import attachments_card with context %}
{% block title %}{{ e.code }} {{ nm(e) }}{% endblock %}
{% block content %}
{{ t('Employees') }}
{{ e.code }} {{ nm(e) }} {{ t('Active' if e.state == 'active' else 'Left') }}
{{ e.job_title or '' }}{{ ' · ' ~ e.department if e.department }} · {{ branches[e.branch_id].code if e.branch_id in branches }}
{% if can_write %}
{% endif %}
{{ t('Monthly wage') }}
{{ monthly|money(cur) }}
{{ cur }} · {{ t('Basic') }} {{ e.basic|money(cur) }}
{{ t('Annual leave balance') }}
{{ '%.1f'|format(leave_bal) }}
{{ t('days') }} · {{ leave_value|int|money(cur) }} {{ cur }}
{{ t('End of service to date') }}
{{ eosb_full|int|money(cur) }}
{{ '%.2f'|format(years) }} {{ t('years') }} · {{ t('if resigning') }} {{ eosb_resign|int|money(cur) }}
{{ t('Loan balance') }}
{{ loans|sum(attribute='balance')|money(cur) }}
{{ cur }}
- {{ t('Joining date') }}
- {{ e.join_date }}
{% if e.leave_date %}- {{ t('Last working day') }}
- {{ e.leave_date }}
{% endif %}
- {{ t('Labour law') }}
- {{ t(laws[e.law]) }}{% if e.is_national %} · {{ t('National') }}{% endif %}
- {{ t('Nationality') }}
- {{ e.nationality or '—' }}
- {{ t('Salary') }}
- {{ t('Basic') }} {{ e.basic|money(cur) }} · {{ t('Housing') }} {{ e.housing|money(cur) }} · {{ t('Transport') }} {{ e.transport|money(cur) }} · {{ t('Other') }} {{ e.other_allowance|money(cur) }}
- {{ t('ID / Iqama') }}
- {{ e.id_number or '—' }}{% if e.id_expiry %} · {{ t('expires') }} {{ e.id_expiry }}{% endif %}
- {{ t('Passport') }}
- {{ e.passport_no or '—' }}{% if e.passport_expiry %} · {{ t('expires') }} {{ e.passport_expiry }}{% endif %}
- {{ t('Bank') }}
- {{ e.bank_name or '—' }} {{ e.iban or '' }}
- {{ t('Provisions booked') }}
- {{ t('End of service') }} {{ e.eosb_booked|money(cur) }} · {{ t('Vacation') }} {{ e.leave_booked|money(cur) }}
{% if settlement %}