For your requirement you need to use one another loop for print repeated row as per your qty field.
For(var i=1;i<=qty;i++){
<div class="myClass" id="count1"><?= $logs['name'] ?></div>
}
I am not php developer so you need to correct the syntax but i tried to help using logically.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…