{% if data %} <div class="col-md-12 col-xs-12" align="center"> <div class="col-md-12 col-xs-12" style="padding-bottom:15px;"> <b>Employees to mark attendance</b> </div> {% for item in data %} <div class="col-md-4 col-xs-6" style="padding-bottom:10px;"> {{ item.employee }} {{ item.employee_name }} </div> {% } %} </div> {% } else { %} <div></div> {% } %}