<%= nav_breadcrumb( [translate(:staff_services), staff_root_path], [Person.model_name.human(count: 0), staff_people_path], @person.full_name, ) %> <%= render partial: 'nav_tabs', locals: { person: @person, tab: :overview } %>
<% if @person.photo.attached? %> <%= image_tag @person.photo, class: 'img-thumbnail mb-4' %> <% else %> <%= image_tag 'image_placeholder.png', class: 'img-thumbnail mb-4' %> <% end %>
<%= Person.human_attribute_name :account %>
<%= staff_account_link_or_none @person.account %> <% if policy([:staff, @person, AccountConnectionLink.new(@person)]).new? %>
<%= link_to( translate('.create_link_to_connect_account'), new_staff_person_account_connection_link_path(@person), ) %> <% end %>
<%= Person.human_attribute_name :last_name %>
<%= truncate @person.last_name %>
<%= Person.human_attribute_name :first_name %>
<%= truncate @person.first_name %>
<%= Person.human_attribute_name :middle_name %>
<%= truncate @person.middle_name %>
<%= Person.human_attribute_name :sex %>
<%= translate_enum :sex, @person.sex if @person.sex %>
<%= Person.human_attribute_name :date_of_birth %>
<%= localize @person.date_of_birth if @person.date_of_birth %>
<%= Person.human_attribute_name :place_of_birth %>
<%= truncate @person.place_of_birth if @person.place_of_birth %>
<%= Relationship.human_attribute_name :status %>
<%= relationship_status_or_none @person.current_relationship %>
<%= Relationship.human_attribute_name :position %>
<%= relationship_position_or_none @person.current_relationship %>
<%= Relationship.human_attribute_name :from_date %>
<%= relationship_from_date_or_none @person.current_relationship %>
<%= Relationship.human_attribute_name :regional_office %>
<%= staff_regional_office_link_or_none \ @person.current_relationship&.regional_office %>
<%= Relationship.human_attribute_name :initiator_account %>
<%= staff_account_link_or_none \ @person.current_relationship&.initiator_account %>