<h1>{{@page_data.title}}</h1>
<div class="taps_list" href="/taps/list">
  <div class="reload" align="center">
    <repeat group="{{@taps}}" value="{{@tap}}">
      <div class="tap show_window" href="/taps/tap?id={{@tap['id']}}">
        <div>
          <p align="center">
            <big>{{@tap['title']}}</big>
            <check if="{{@tap['product_title']!='' && @tap['connection']==1}}">
            <br><small>{{@tap['product_title']}}</small>
            </check>
          </p>
          <check if="{{@tap['connection']==1}}">
            <true>
              <repeat group="{{@tap['products']}}" value="{{@product}}">
          <p>
            <small>{{@product['title']}}</small>
          </p>
              </repeat>
              <div class="tap_info" align="left">
                <span class="right">
                  <i class="fas fa-beer-barrel"></i>
                  <small>
                    {{round(@tap['current_volume_with_lines'], 2)}}/{{round(@tap['volume'], 2)}} л
                  </small>
                </span>
                <i class="fas fa-hourglass-half-regular"></i>
                <small>
                  {{date('d.m.Y', @tap['expiration_date'])}}
                </small>
              </div>
            </true>
            <false>
          <p>Кег не подключен</p>
            </false>
          </check>
        </div>
      </div>
    </repeat>
    <check if="{{in_array('taps/form', @authorization_user.module)}}">
    <div class="tap show_window add_tap" href="/taps/form" align="center">
      <p><i class="fa fa-plus"></i></p>
      <p>Добавить</p>
    </div>
    </check>
  </div>
</div>