<%= @passport.surname %>
<%= @passport.given_name %>
<%= @passport.patronymic %>
<% if user_signed_in? %>
<% if @passport.passport_confirmations.where(user: current_user).exists? %>
<%= translate '.instruction_confirmed' %>
<% else %>
<%= translate '.instruction_unconfirmed' %>
<%= link_to translate('.confirm'),
passport_passport_confirmations_path(@passport),
method: :post,
role: :button,
class: 'btn btn-primary' %>
<% end %>
<% end %>
-
<%= Passport.human_attribute_name :confirmed %>
-
<% if @passport.confirmed? %>
<%= Passport.human_attribute_name 'confirmed.true' %>
<% else %>
<%= Passport.human_attribute_name 'confirmed.false' %>
<% end %>
-
<%= Passport.human_attribute_name :passport_confirmations_count %>
-
<%= @passport.passport_confirmations.count %>
/
<%= Passport::REQUIRED_CONFIRMATIONS %>
-
<%= Passport.human_attribute_name :surname %>
-
<%= @passport.surname %>
-
<%= Passport.human_attribute_name :given_name %>
-
<%= @passport.given_name %>
-
<%= Passport.human_attribute_name :patronymic %>
-
<%= @passport.patronymic %>
-
<%= Passport.human_attribute_name :sex %>
-
<%= Passport.human_attribute_name "sex.#{@passport.sex}" %>
-
<%= Passport.human_attribute_name :date_of_birth %>
-
<%= localize @passport.date_of_birth %>
-
<%= Passport.human_attribute_name :place_of_birth %>
-
<%= @passport.place_of_birth %>
-
<%= Passport.human_attribute_name :series %>
-
<%= passport_series @passport.series %>
-
<%= Passport.human_attribute_name :number %>
-
<%= passport_number @passport.number %>
-
<%= Passport.human_attribute_name :issued_by %>
-
<%= @passport.issued_by %>
-
<%= Passport.human_attribute_name :unit_code %>
-
<%= @passport.unit_code %>
-
<%= Passport.human_attribute_name :date_of_issue %>
-
<%= localize @passport.date_of_issue %>
<% @passport.images.order(created_at: :desc).limit(1).each do |image| %>
<%= image_tag url_for(image), class: 'img-fluid' %>
<% end %>