html
<table id="datatable-buttons" class="table table-striped table-bordered dataTable no-footer dtr-inline" role="grid" aria-describedby="datatable-buttons_info" style="width: 100%;">
<thead>
<tr role="row">
<th class="sorting_asc" tabindex="0" aria-controls="datatable-buttons" rowspan="1" colspan="1" style="width: 50px;" aria-sort="ascending" aria-label="Name: activate to sort column descending">#</th>
<th class="sorting" tabindex="0" aria-controls="datatable-buttons" rowspan="1" colspan="1" style="width: 200px;" aria-label="Position: activate to sort column ascending">Calidad</th>
<th class="sorting" tabindex="0" aria-controls="datatable-buttons" rowspan="1" colspan="1" style="width: 50px;" aria-label="Office: activate to sort column ascending">Peso</th>
<th class="sorting" tabindex="0" aria-controls="datatable-buttons" rowspan="1" colspan="1" style="width: 50px;" aria-label="Age: activate to sort column ascending">Cajas</th>
<th class="sorting" tabindex="0" aria-controls="datatable-buttons" rowspan="1" colspan="1" style="width: 50px;" aria-label="Start date: activate to sort column ascending">Precio</th>
</thead>
<tbody>
<?php if(!empty($calidad)): ?>
<?php foreach($calidad as $calidad): ?>
<tr role="row" class="odd">
<td tabindex="0" class="sorting_1"><input type="hidden"><?php echo $calidad->id; ?></td>
<td><?php echo $calidad->nombre; ?></td>
<td><input type="number" name="peso" placeholder="0" class="form-control peso"></td>
<td><input type="number" name="cajas" placeholder="0" class="form-control cajas"></td>
<td><input type="number" name="precio" placeholder="0" class="form-control precio"></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
</table>