<% content_for :javascript_includes do %> <%= javascript_include_tag "slick" %> <%= stylesheet_link_tag "slick", "slick-theme", "lunar" %> <% end %>
<% @images.each do |image| %>
<%= image_tag image.image.url(:thumb), class: "img-fluid" %>
<% end %>
<% @images.each do |image| %>
<%= image_tag image.image.url(:medium), class: "img-fluid" %>
<% end %>
<% @images.each do |image| %>
<%= image_tag image.image.url(:medium), class: "img-fluid" %>
<% end %>
<%= @product.category_name %>
<%= @product.name %>
<%= number_to_currency(@product.price, unit: 'Rp ', separator: ',', delimiter: '.') %>

    <% @product.short_description.split("\n").each do |desc| %>
  • <%= raw desc %>
  • <% end %>
<% if @product.category_name == "Kompor Induksi" %> <%= image_tag "garansi.png", class: "img-fluid garansi" %> <% end %>
<% @product.compatibility.each do |c| %> <% unless c.blank? %> <% style = ["panci 68", "panci k655 k625", "wajan 68"].include?(c.downcase) ? "width: 100px" : "width: 65px" %> <%= image_tag "#{c.downcase.parameterize}.png", class: "img-fluid", style: "#{style}" %> <% end %> <% end %>
<%= link_to "Beli Sekarang", kompor_induksi_path, class: "btn btn-outline-green", data: {toggle: "modal", target: "#shop_modal"} %>
<% @feature_details.each_with_index do |detail, x| %> <% temp_class = (x % 2) == 0 ? "border_odd" : "border_even" %> <% temp_class = "" if (x + 1) == @feature_details.size %>
<%= detail.icon_title %>
<%= image_tag detail.icon.url(:thumb), class: "img-fluid" %>
<% end %>
<% @feature_details.each_with_index do |detail, x| %> <% temp_class_image = (x % 2) == 0 ? "order-md-1 order-1" : "order-md-2 order-1" %> <% temp_class_detail = (x % 2) == 0 ? "order-md-2 order-1" : "order-md-1 order-2" %>
<%= image_tag detail.image.url, class: "img-fluid" %>
<%= detail.title %>
<%= raw(detail.description) %>
<% end %> <% if !@product.specification.blank? || !@product.feature.blank? %>
<% unless @product.specification.blank? %>

Spesifikasi

<% @product.specification.split("#").each do |spec| %>
<%= simple_format spec %>
<% end %>
<% end %> <% unless @product.feature.blank? %>

Fitur

<% @product.feature.split("#").each do |spec| %>
<%= simple_format spec %>
<% end %>
<% end %>
<% end %>
<%= link_to "<< Back ", root_path %>
<%= render partial: "modal" %>