Files
apimacro/resources/views/export_articles_sales.blade.php

56 lines
2.2 KiB
PHP
Raw Normal View History

2024-11-27 14:44:37 +01:00
<!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>
<table class="table table-bordered">
<thead>
<tr>
<th>Id Articolo</th>
<th>Titolo</th>
2024-11-27 17:17:08 +01:00
<th>Rank 3 Mesi</th>
<th>Rank 6 Mesi</th>
<th>Rank 1 Anno</th>
2024-11-27 15:43:48 +01:00
<th>Data Ultimo Ordine</th>
2024-11-27 14:44:37 +01:00
<th>Totale Venduto</th>
2024-11-27 15:13:17 +01:00
<th>Ultimo Mese</th>
<th>Ultimi 6 Mesi</th>
<th>Ultimo Anno</th>
2024-11-27 15:23:58 +01:00
<th>Ultimi 2 Anni</th>
2024-11-27 15:43:48 +01:00
2024-11-27 14:44:37 +01:00
</tr>
</thead>
<tbody>
2024-11-27 15:13:17 +01:00
@if ($articoliVenduti->isEmpty())
2024-11-27 14:44:37 +01:00
<tr>
2024-11-27 15:13:17 +01:00
<td colspan="6" class="text-center">Nessun articolo trovato.</td>
2024-11-27 14:44:37 +01:00
</tr>
2024-11-27 15:13:17 +01:00
@else
@foreach ($articoliVenduti as $articolo)
<tr>
<td>{{ $articolo->idArticolo }}</td>
<td>{{ $articolo->Titolo }}</td>
2024-11-27 17:17:08 +01:00
<td>{{ $articolo->rank3M }}</td>
<td>{{ $articolo->rank6M }}</td>
<td>{{ $articolo->rank1Y }}</td>
2024-11-27 15:58:32 +01:00
<td>{{ \Carbon\Carbon::parse($articolo->ultimoOrdine)->format('d/m/Y') }}</td>
2024-11-27 15:13:17 +01:00
<td>{{ $articolo->totaleVenduto }}</td>
<td>{{ $articolo->totaleVendutoUltimoMese }}</td>
<td>{{ $articolo->totaleVendutoUltimi6Mesi }}</td>
<td>{{ $articolo->totaleVendutoUltimoAnno }}</td>
2024-11-27 15:23:03 +01:00
<td>{{ $articolo->totaleVendutoUltimi2Anni }}</td>
2024-11-27 15:13:17 +01:00
</tr>
@endforeach
@endif
2024-11-27 14:44:37 +01:00
</tbody>
</table>
</div>
</body>
2024-11-27 15:13:17 +01:00
</html>