
<div class="page-header">
 <ul class="breadcrumb">

  <li><a href="<%= root_path %>">Home</a></li>
  <li><a href="<%= settings_menu_category_simple_menu_item_path(@category,@item) %>">Menu Item</a></li>
  <li>Menu Item Instances</li>

  <span style="float: right">
  </span>
 </ul>
</div>

<div class="card">
  <div class="card-block">

    <h4 class="card-title">Menu Item Instance</h4>
    <table class="table">
      <thead>
        <tr>
          <th>Item Instance code</th>
          <th>Name</th>
          <th>Price</th>
          <th>On Promotion</th>
          <th>Promotion Price</th>
          <th>Available</th>
          <th>Created At</th>

        </tr>
      </thead>

      <tbody>
        <tr>

          <td><%= @settings_menu_item_instances.item_instance_code %></td>
          <td><%= @settings_menu_item_instances.item_instance_name  rescue "-" %></td>
          <td><%= @settings_menu_item_instances.price %></td>
          <td><%= @settings_menu_item_instances.is_on_promotion %></td>
          <td><%= @settings_menu_item_instances.promotion_price %></td>
          <td><%= @settings_menu_item_instances.is_available %></td>
          <td><%= @settings_menu_item_instances.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td>
          <% if params[:simple_menu_item_id] %>
          <td><%= link_to 'Edit', edit_settings_simple_menu_item_menu_item_instance_path(@item,@settings_menu_item_instances) %></td>
          <% else %>
          <td><%= link_to 'Edit', edit_settings_simple_menu_item_menu_item_instance_path(@item,@settings_menu_item_instances) %></td>
          <% end %>

        </tr>
      </tbody>
    </table>
  </div>
</div>

</div>
