<div class="tab-pane fade" id="pills-history" role="tabpanel" aria-labelledby="pills-history-tab">
{if $history_table is odd}
  <div class="table-fix block-container mb-4">
    <table class="table"">
      <thead class="thead-dark">
        <tr>
          <th scope="col">id</th>
          <th scope="col">Операция</th>
          <th scope="col">Стоимость</th>
          <th scope="col">Дата операции</th>
        </tr>
      </thead>
      <tbody>

        {foreach $history_table as $value}
        <tr>
          <td width="50px">{$value.id}</td>
          <td width="350px">{$value.description}</td>
          <td width="150px">{$value.price} <small>руб.</small></td>
          <td width="250px">{$value.date|date_format:"%d.%m.%Y в %H:%M"}</td>
        </tr>
        {/foreach}

      </tbody>
    </table>
  </div>
{else}
<div class="text-center cabinet-info">Операций не проводилось</div>
{/if}
</div>

