hola soy novato en php tengo 2 tablas en una tengo un precio y en la otra la cantidad
en la pagina q ago el reporte no logro multiplicar la cantidad por el precio este es mi codigo
<?php if(count($operations)>0):?>
<?php $supertotal = 0; ?>
<table class="table table-bordered">
<thead>
<tr><th>Id</th>
<th>Producto</th>
<th>Cantidad</th>
<th>Total</th>
<th>Operacion</th>
<th>Fecha</th>
</thead>
<?php foreach($operations as $operation):?>
<tr>
<td><?php echo $operation->id; ?></td>
<td><?php echo $operation->getProduct()->name; ?></td>
<td><?php echo $operation->q; ?></td>
<td><?php echo $operation->getProduct()->price_out;?></td>
<td><?php echo $operation->getOperationType()->name; ?></td>
<td><?php echo $operation->created_at; ?></td>
</tr>
<?php endforeach; ?>
</table>
</table>
<h1>Total de ventas: $ <?php echo number_format($supertotal,2,'.',','); ?></h1>
espero su respuesta saludos