<% if field['type'].in?(['signature', 'image']) %> <% elsif field['type'] == 'file' %>
<% Array.wrap(value).each do |val| %> <%= svg_icon('paperclip', class: "inline w-[1.5vw] h-[1.5vw] lg:w-4 lg:h-4") %> <%= attachments_index[val].filename %> <% end %>
<% elsif field['type'] == 'checkbox' %>
<%= svg_icon('check', class: "aspect-square #{area['w'] > area['h'] ? '!w-auto !h-full' : '!w-full !h-auto'}") %>
<% elsif field['type'] == 'date' %>
<%= l(Date.parse(value)) %>
<% else %>
<%= Array.wrap(value).join(', ') %>
<% end %>