| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>The Subline</title>
- <link rel="icon" type="img/png" href="/shared/images/logo.png">
- <link rel="stylesheet" href="/shared/shared.css">
- <link rel="stylesheet" href="/dashboardPage/dashboard.css">
- <link rel="stylesheet" href="/dashboardPage/components/components.css">
- <link href="https://fonts.googleapis.com/css?family=Saira&display=swap" rel="stylesheet">
- </head>
- <body>
- <% include ./components/menu %>
- <div class="contentBlock">
- <% include ../shared/banner %>
-
- <div id="homeStrand" class="strand">
- <h1 class="strandTitle">Dashboard</h1>
- <div class="flexRow">
- <div id="revenueCard" class="card">
- <p>Total Revenue (month)</p>
- <p id="revenue"></p>
- <div id="revenueChange">
- <img alt="revenue">
- <p></p>
- </div>
- </div>
- <div id="graphCard" class="card">
- <canvas id="graphCanvas">
- </div>
- </div>
- <div class="flexRow">
- <div id="inventoryCheckCard" class="card">
- <p>Inventory Check</p>
- <ul></ul>
- <button class="button" onclick="homeStrandObj.submitInventoryCheck()">Update</button>
- </div>
- <div id=popularIngredientsCard class="card">
- <p>Most Popular Ingredients (month)</p>
- <canvas id="popularCanvas"></canvas>
- </div>
- </div>
- </div>
- <div id="ingredientsStrand" class="strand">
- <div class="strandHead">
- <h1 class="strandTitle">Ingredient Inventory</h1>
- <button class="button" onclick="addIngredientsComp.display()">
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
- add
- </button>
- </div>
- <div id="categoryList"></div>
- </div>
- <div id="recipeBookStrand" class="strand">
- <div class="strandHead">
- <h1 class="strandTitle">Recipe Book</h1>
- <% if(merchant.pos === "none"){ %>
- <button class="button" onclick="recipeBookStrandObj.displayAddRecipe()">
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
- add
- </button>
- <% } %>
- </div>
- <div id="recipeList"></div>
- </div>
- <div id="ordersStrand" class="strand">
- <div class="strandHead">
- <h1 class="strandTitle">Orders</h1>
- <button class="button" onclick="newOrderComp.display()">
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
- add
- </button>
- </div>
- <table id="orderList">
- <thead>
- <tr>
- <th>ID #</th>
- <th>Item Count</th>
- <th>Date</th>
- <th>Cost</th>
- </tr>
- </thead>
- <tbody></tbody>
- </table>
- <template id="order">
- <tr class="order">
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- </div>
- </template>
- </div>
- </div>
- <div id="sidebarDiv" class="sidebarHide">
- <% include ./components/addIngredients %>
- <% include ./components/ingredientDetails %>
- <% include ./components/recipeDetails %>
- <% include ./components/addRecipe %>
- <% include ./components/newOrder %>
- </div>
- <script>let merchant = <%- JSON.stringify(merchant) %>;</script>
- <script>let transactions = <%- JSON.stringify(transactions) %>;</script>
- <script src="../shared/graphs.js"></script>
- <script src="/dashboardPage/home.js"></script>
- <script src="/dashboardPage/ingredients.js"></script>
- <script src="/dashboardPage/recipeBook.js"></script>
- <script src="/dashboardPage/components/components.js"></script>
- <script src="/dashboardPage/controller.js"></script>
- <script src="/dashboardPage/orders.js"></script>
- <script src="../shared/validation.js"></script>
- <noscript>Please turn on javascript for this site to work properly</noscript>
- </body>
- </html>
|