<p id="notice"><%= notice %></p>

<h1>Dining Charges</h1>

<table>
  <thead>
    <tr>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @dining_charges.each do |dining_charge| %>
      <tr>
        <td><%= link_to t("views.btn.show"), dining_charge %></td>
        <td><%= link_to t("views.btn.edit"), edit_dining_charge_path(dining_charge) %></td>
        <td>
          <button class="delete btn btn-danger btn-sm waves-effect" data-ref="<%= dining_charge%>" data-method="delete">
            <%= t("views.btn.delete") %>
          </button>

          <span class="hidden" id="delete_text">
            <h6>Are you sure you want to delete this row ?</h6>
            <h6>This action can't be undo. </h6> 
          </span>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Dining Charge', new_dining_charge_path %>
