<%= link_to t("views.btn.new"),new_settings_promotion_path,:class => 'btn btn-primary btn-lg float-right waves-effect"' %>
<% @promotions.each do |pro| %> <% if Employee.exists?(pro.created_by) %> <% else %> <% end %> <% end %>
Promotion Code Start Date End Date Start Time End Time Promotion Day Original Product Created By Created At
<%= link_to pro.promo_code, settings_promotion_path(pro) %> <%= pro.promo_start_date %> <%= pro.promo_end_date %> <%= pro.promo_start_hour.utc.strftime("%I:%M %P") rescue "-" %> <%= pro.promo_end_hour.utc.strftime("%I:%M %P") rescue "-" %> <%= pro.promo_day %> <% item = MenuItemInstance.find_by_item_instance_code(pro.original_product)%> <% if item.nil? %> <%= Product.find_by_item_code(pro.original_product).name rescue "-" %> <% else %> <%= item.menu_item.name rescue "-" %> - <%= item.item_instance_name rescue "-" %> <% end %> <%= Employee.find(pro.created_by).name %><%= pro.created_by %><%= pro.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %> <%= link_to t("views.btn.edit"), edit_settings_promotion_path(pro) %>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse