This commit is contained in:
paoloar77
2024-11-27 17:35:32 +01:00
parent d0fcb0baa3
commit 135690c2a0
2 changed files with 57 additions and 46 deletions

View File

@@ -1,11 +1,13 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Articoli Venduti</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-4">
<h1 class="mb-4">Articoli Venduti</h1>
@@ -18,40 +20,45 @@
<th>Rank 3 Mesi</th>
<th>Rank 6 Mesi</th>
<th>Rank 1 Anno</th>
<th>Data Ultimo Ordine</th>
<th>Data Ultimo Ordine</th>
<th>Totale Venduto</th>
<th>Ultimo Mese</th>
<th>Ultimi 6 Mesi</th>
<th>Ultimo Anno</th>
<th>Ultimi 2 Anni</th>
</tr>
</thead>
<tbody>
<pre>{{ print_r($articoliVenduti, true) }}</pre>
@if ($articoliVenduti->isEmpty())
<tr>
<td colspan="6" class="text-center">Nessun articolo trovato.</td>
</tr>
@else
@foreach ($articoliVenduti as $articolo)
<tr>
<td>{{ $articolo->idArticolo }}</td>
<td>{{ $articolo->Titolo }}</td>
<td>{{ $articolo->DataPubblicazione }}</td>
<td>{{ $articolo->rank3M }}</td>
<td>{{ $articolo->rank6M }}</td>
<td>{{ $articolo->rank1Y }}</td>
<td>{{ \Carbon\Carbon::parse($articolo->ultimoOrdine)->format('d/m/Y') }}</td>
<td>{{ $articolo->totaleVenduto }}</td>
<td>{{ $articolo->totaleVendutoUltimoMese }}</td>
<td>{{ $articolo->totaleVendutoUltimi6Mesi }}</td>
<td>{{ $articolo->totaleVendutoUltimoAnno }}</td>
<td>{{ $articolo->totaleVendutoUltimi2Anni }}</td>
</tr>
@if (isset($articolo->idArticolo))
<tr>
<td>{{ $articolo->idArticolo }}</td>
<td>{{ $articolo->Titolo }}</td>
<td>{{ $articolo->DataPubblicazione }}</td>
<td>{{ $articolo->rank3M }}</td>
<td>{{ $articolo->rank6M }}</td>
<td>{{ $articolo->rank1Y }}</td>
<td>{{ \Carbon\Carbon::parse($articolo->ultimoOrdine)->format('d/m/Y') }}</td>
<td>{{ $articolo->totaleVenduto }}</td>
<td>{{ $articolo->totaleVendutoUltimoMese }}</td>
<td>{{ $articolo->totaleVendutoUltimi6Mesi }}</td>
<td>{{ $articolo->totaleVendutoUltimoAnno }}</td>
<td>{{ $articolo->totaleVendutoUltimi2Anni }}</td>
</tr>
@endif
@endforeach
@endif
</tbody>
</table>
</div>
</body>
</html>
</html>