This commit is contained in:
paoloar77
2024-11-27 15:13:17 +01:00
parent 73de034024
commit 1dc4f2e7ba

View File

@@ -15,21 +15,30 @@
<th>Id Articolo</th> <th>Id Articolo</th>
<th>Titolo</th> <th>Titolo</th>
<th>Totale Venduto</th> <th>Totale Venduto</th>
<th>Ultimo Mese</th>
<th>Ultimi 6 Mesi</th>
<th>Ultimo Anno</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@foreach ($articoliVenduti as $articolo) @if ($articoliVenduti->isEmpty())
<tr> <tr>
<td>{{ $articolo->idArticolo }}</td> <td colspan="6" class="text-center">Nessun articolo trovato.</td>
<td>{{ $articolo->Titolo }}</td>
<td>{{ $articolo->totaleVenduto }}</td>
<td>{{ $articolo->totaleVendutoUltimoMese }}</td>
<td>{{ $articolo->totaleVendutoUltimi6Mesi }}</td>
<td>{{ $articolo->totaleVendutoUltimoAnno }}</td>
</tr> </tr>
@endforeach @else
@foreach ($articoliVenduti as $articolo)
<tr>
<td>{{ $articolo->idArticolo }}</td>
<td>{{ $articolo->Titolo }}</td>
<td>{{ $articolo->totaleVenduto }}</td>
<td>{{ $articolo->totaleVendutoUltimoMese }}</td>
<td>{{ $articolo->totaleVendutoUltimi6Mesi }}</td>
<td>{{ $articolo->totaleVendutoUltimoAnno }}</td>
</tr>
@endforeach
@endif
</tbody> </tbody>
</table> </table>
</div> </div>
</body> </body>
</html> </html>