<%- include("../partials/head") %>
<%- include("../partials/header") %>
<main class="container section">
  <div class="panel">
    <h1>کیف پول داخلی</h1>
    <p>موجودی فعلی: <strong><%= helpers.formatCurrency(wallet.balance) %></strong> <%= wallet.currency %></p>
    <table class="table">
      <thead>
        <tr><th>نوع</th><th>مبلغ</th><th>توضیح</th><th>تاریخ</th></tr>
      </thead>
      <tbody>
        <% transactions.forEach((item) => { %>
          <tr>
            <td><%= item.type %></td>
            <td><%= helpers.formatCurrency(item.amount) %></td>
            <td><%= item.description %></td>
            <td><%= helpers.formatDate(item.createdAt) %></td>
          </tr>
        <% }) %>
      </tbody>
    </table>
  </div>
</main>
<%- include("../partials/footer") %>
