quiero saber si combinar etiquetas php <?php ?> y {{ }} es correcto combinarlas?
Código PHP:
Ver original
<?php $total=0; ?> <table class="table table-striped table-bordered" border="1"> <thead> <tr> <th>Volcán</th> <th># Repetidoras</th> </tr> </thead> <tbody> @foreach ($repeaters as $repeater) <tr> <td>{{{ $repeater->nombre}}}</td> <td>{{{ $repeater->repeaters}}}</td> <?php $total = $total + $repeater->repeaters ?> </tr> @endforeach <tr> <td><strong>Total</strong></td> <td><strong>{{ $total }}</strong></td> </tr> </table>