{% extends "layouts/base.twig" %} {% block title %}{{ translations.franchise_employee }}{% endblock %} {% block head %} {{ parent() }} {% endblock %} {% block page_heading %}

{{ translations.franchise_employee }}

{{ translations.franchise_employee_subtitle }}

{% endblock %} {% block content %}

{{ employee.getDisplayName() ?: (employee.getName() ~ ' ' ~ employee.getSurname()) }}

{{ shop.getName() }} {% if employee.getProductionAreaName() %} • {{ employee.getProductionAreaName() }}{% endif %} {% if employee.getLangCode() %} • {{ employee.getLangCode()|upper }}{% endif %}
{{ translations.edit ?? 'Edytuj' }}
{{ translations.employee_profile }}
{{ translations.basic_data ?? 'basic_data' }}
{{ translations.first_name ?? 'first_name' }}
{{ employee.getName() }}
{{ translations.surname ?? 'surname' }}
{{ employee.getSurname() }}
{{ translations.phone ?? 'phone' }}
{{ employee.getPhone() ?: '-' }}
{{ translations.organization ?? 'organization' }}
{{ translations.franchise ?? 'franchise' }}
{{ shop.getName() }}
{{ translations.production_area ?? 'production_area' }}
{{ employee.getProductionAreaName() ?: '-' }}
{{ translations.workstation ?? 'workstation' }}
{{ employee.getWorkstationString() ?: '-' }}
{# --------------------------- EMPLOYEE POSITIONS (READ) --------------------------- #}
{{ translations.positions ?? 'positions' }}
{% set positions = employee.getPositions() ?? employee.positions ?? [] %} {% if positions|length == 0 %}
{{ translations.no_positions_assigned ?? 'Brak przypisanych stanowisk.' }}
{% else %}
{% for pos in positions %}
{{ pos.getName() ?? pos.name ?? '-' }}
{{ translations.level ?? 'level' }}: {{ pos.getLevelName() ?? pos.level_name ?? '-' }}
{% endfor %}
{% endif %}
{{ translations.assign_role ?? 'assign_role' }}
{% endblock %} {% block scripts %} {% endblock %}