% show_params.each do |a| %>
<% if @belongs_to_fields.include?(a.to_sym) %>
<%= @model_class.human_attribute_name(a) %>
<%= show_object(@model.send(a)) %>
<% elsif @has_many_fields.include?(a.to_sym) %>
<%= @model_class.human_attribute_name(a) %>
<%= @model.send(a) %>
<% elsif @model.send(a).class <= CarrierWave::Uploader::Base %>
<%= @model_class.human_attribute_name(a) %>
<% if @model.send(a).present? %>
<% extension = @model.send(a).file.try(:extension).try(:downcase) || @model.send(a).file.try(:format).try(:downcase) || file.try(:file).try(:extension) %>
<% if extension.present? %>
<% if %w{pdf doc docx xls xlsx ppt pptx}.include?(extension) %>
<% else %>
 %>)
<% end %>
<% end %>
<% end %>
<% else %>
<% case guess_field_type(@model, a)
when 'string' %>
<%= @model_class.human_attribute_name(a) %>
<%= @model.send(a) %>
<% when 'text' %>
<%= @model_class.human_attribute_name(a) %>
<%= @model.send(a) %>
<% when 'integer' %>
<%= @model_class.human_attribute_name(a) %>
<%= @model.send(a) %>
<% when 'number', 'decimal' %>
<%= @model_class.human_attribute_name(a) %>
<%= @model.send(a) %>
<% when 'boolean' %>
<%= @model_class.human_attribute_name(a) %>
<%= @model.send(a) ? t('slash_admin.view.yes') : t('slash_admin.view.no') %>
<% when 'date', 'datetime' %>
<%= @model_class.human_attribute_name(a) %>
<%= @model.send(a) %>
<% end %>
<% end %>
<% end %>