              <div class="col-md-6">
                <div class="panel panel-default">
                  <div class="panel-body">
                    {% set capacity = live.capacity|default(null) %}
                    {% set expire = live.expire|default(null) %}

                   <h4 class="eduyun-title">云直播{% if live%}<a href="http://www.edusoho.com/product/system" target="_blank">去购买</a>{% endif %}</h4>
                   <!--未购买-->
                    {% if not live %}
                         <div class="alert alert-warning alert-sm" role="alert">
                            <i class="glyphicon glyphicon-info-sign" aria-hidden="true"></i>您尚未购买云直播，点击<a href="http://www.edusoho.com/product/system" target="_blank">这里</a>了解详情
                          </div>
                    {% else %}
                      <p class="text-muted">教室容量：{{capacity|default(0)}}人</p>
                      {% if expire and expire > 0  %}
                        <p class="text-muted">有效期至：{{expire|date("Y-m-d")}}</p>
                    
                        {% if liveDate == 0 %}
                              <p class="text-danger text-sm">云直播服务将于明天过期，请尽快<a href="http://www.edusoho.com/product/system" target="_blank">续费</a></p>
                        {% endif %}
                        <!--7天警告-->
                        {% if 7 >= liveDate|default(31)  and liveDate|default(31)  > 0 %}
                              <p class="text-danger text-sm">云直播服务将于{{liveDate}}天后过期，请尽快<a href="http://www.edusoho.com/product/system" target="_blank">续费</a></p>
                        {% endif %}
                        <!--已过期-->
                        {% if liveDate|default(31)  < 0 %}
                              <p class="text-danger text-sm">云直播服务已过期，请尽快<a href="http://www.edusoho.com/product/system" target="_blank">续费</a></p>
                        {% endif %}
                      {% endif %}
                    {% endif %}
                    <p class="panel-bottom">
                      支持Web端、移动端，让手机也能看直播！
                    </p>
                  </div>
                </div>
              </div>