<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>GhostKitchen App</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
    integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>

<body>
  <main>
    <div class="container">
      <div>
        <h3>
          GhostKitchen App
        </h3>
      </div>
      <div class="p-4">
        <div class="display-4">
          Menu
        </div>
        <br/>
        <table class="table table-hover">
          <thead>
            <tr>
              <th scope="col">Name</th>
              <th scope="col">Description</th>
              <th scope="col">Calories</th>
              <th scope="col">Price
              <th>
            </tr>
          </thead>
          <tbody>
            <% meals.forEach(function (f) {%>
              <tr>
                <form action="/user/brands/<%= brandID %>/menu/<%= f._id %>/order/" method="GET">
                  <td scope="col">
                    <%= f.meal_name %>
                  </td>
                  <td scope="col">
                    <%= f.meal_desc %>
                  </td>
                  <td scope="col">
                    <%= f.calories%>
                  </td>
                  <td scope="col">$<%= f.price %>
                  </td>
                  <td>
                    <button type="submit" class="btn btn-primary">
                      Order
                    </button>
                  </td>
                </form>
              </tr>
              <% }) %>
          </tbody>
        </table>
      </div>
    </div>
  </main>
</body>

</html>
