
<div class="page-header">
 <ul class="breadcrumb">
  <li><a href="<%=  %>">Home</a></li>
  <li>Menu Categories</li>
  <span style="float: right">
    <!-- <%= link_to t('.new', :default => t("helpers.links.new")),new_settings_menu_category_path,:class => 'btn btn-primary btn-sm' %> -->
  </span>
 </ul>
</div>

<br>
<div class="card">
  <table class="table table-striped">
    <thead>
      <tr>
        <th>Menu</th>
        <th>Name</th>
        <th>Alt name</th>
        <th>Order by</th>
        <th>Parent</th>
        <th></th>
        <th></th>
      </tr>
    </thead>

    <tbody>
      <% @settings_menu_categories.each do |settings_menu_category| %>
        <tr>
          <td><%= link_to settings_menu_category.menu.name, settings_menu_path(settings_menu_category.menu) %></td>
          <td><%= link_to settings_menu_category.name, settings_menu_category_path(settings_menu_category) %></td>

          <td><%= settings_menu_category.alt_name rescue ''%></td>
          <td><%= settings_menu_category.order_by rescue ''%></td>
          <td><%= settings_menu_category.parent.name rescue ''%></td>
          <td><%= link_to 'Edit', edit_settings_menu_category_path(settings_menu_category) %> | <%= link_to 'Destroy', settings_menu_category_path(settings_menu_category), method: :delete, data: { confirm: 'Are you sure?' } %></td></td>

        </tr>
      <% end %>
    </tbody>
  </table>
</div>
 <%= paginate @settings_menu_categories, param_name: :page, :outer_window => 3 %> 
