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

107 lines
4.2 KiB
PHP
Raw Normal View History

2024-11-27 14:44:37 +01:00
<!DOCTYPE html>
<html lang="it">
2024-11-27 17:35:32 +01:00
2024-11-27 14:44:37 +01:00
<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>
2024-11-27 17:35:32 +01:00
2024-11-27 14:44:37 +01:00
<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-12-07 15:28:56 +01:00
<th>Data Pubbl</th>
2024-11-27 19:00:28 +01:00
<th>ISBN</th>
2024-11-29 13:28:23 +01:00
<th>Pagine</th>
2024-12-02 11:23:33 +01:00
<th>Misure</th>
2024-12-07 15:28:56 +01:00
<th>Rank 3 M</th>
<th>Rank 6 M</th>
<th>Rank 1 Y</th>
<th>Ult Ordi</th>
<th>Tot Venduto</th>
<th>Ult Mese</th>
<th>Ult 6 Mesi</th>
<th>Ult Anno</th>
<th>Ult 2 Anni</th>
2024-11-27 17:35:32 +01:00
2024-11-27 14:44:37 +01:00
</tr>
</thead>
<tbody>
2024-11-27 17:38:03 +01:00
<!--<pre>{{ print_r($articoliVenduti, true) }}</pre>-->
2024-11-27 17:35:32 +01:00
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)
2024-11-28 20:52:14 +01:00
@if (isset($articolo->Ean13))
2024-11-27 17:35:32 +01:00
<tr>
2024-11-29 09:02:38 +01:00
<td>@if (isset($articolo->idArticolo)){{ $articolo->idArticolo }}@endif</td>
<td>@if (isset($articolo->Titolo)){{ $articolo->Titolo }}@endif</td>
<td>@if (isset($articolo->DataPubblicazione)){{ \Carbon\Carbon::parse($articolo->DataPubblicazione)->format('d/m/Y') }}@endif
</td>
<td>@if (isset($articolo->Ean13)){{ $articolo->Ean13 }}@endif</td>
2024-11-29 13:28:23 +01:00
<td>@if (isset($articolo->Pagine)){{ $articolo->Pagine }}@endif</td>
2024-12-02 11:23:33 +01:00
<td>@if (isset($articolo->misure)){{ $articolo->misure }}@endif</td>
2024-11-28 20:51:42 +01:00
2024-12-07 17:06:17 +01:00
<td>@if (isset($articolo->rank3M))
{{ $articolo->rank3M }}
2024-11-28 17:35:14 +01:00
@endif
2024-12-07 17:06:17 +01:00
</td>
<td>@if (isset($articolo->rank6M))
{{ $articolo->rank6M }}
2024-12-07 15:28:56 +01:00
@endif
2024-12-07 17:06:17 +01:00
</td>
<td>@if (isset($articolo->rank1Y))
{{ $articolo->rank1Y }}
2024-12-07 15:28:56 +01:00
@endif
2024-12-07 17:06:17 +01:00
</td>
2024-11-29 09:02:38 +01:00
<td>@if (isset($articolo->ultimoOrdine)){{ \Carbon\Carbon::parse($articolo->ultimoOrdine)->format('d/m/Y') }}@endif
</td>
2024-12-07 17:06:17 +01:00
<td>@if (isset($articolo->totaleVenduti)){{ $articolo->totaleVenduti }}@endif</td>
2024-12-07 17:16:06 +01:00
<td>@if (isset($articolo->totaleVendutiUltimoMese))
2024-12-07 17:06:17 +01:00
{{ $articolo->totaleVendutiUltimoMese }}
2024-11-28 17:35:14 +01:00
@endif
2024-12-07 17:06:17 +01:00
</td>
2024-12-07 17:16:06 +01:00
<td>@if (isset($articolo->totaleVendutiUltimi6Mesi))
2024-12-07 17:06:17 +01:00
{{ $articolo->totaleVendutiUltimi6Mesi }}
2024-11-28 17:35:14 +01:00
@endif
2024-12-07 17:06:17 +01:00
</td>
<td>@if (isset($articolo->totaleVendutiUltimoAnno))
{{ $articolo->totaleVendutiUltimoAnno }}
2024-11-28 17:35:14 +01:00
@endif
2024-12-07 17:06:17 +01:00
</td>
2024-11-28 17:35:14 +01:00
2024-12-07 17:06:17 +01:00
<td>@if (isset($articolo->totaleVendutiUltimi2Anni))
{{ $articolo->totaleVendutiUltimi2Anni }}
2024-11-28 17:35:14 +01:00
@endif
2024-12-07 17:06:17 +01:00
</td>
2024-11-27 17:35:32 +01:00
</tr>
@endif
2024-11-27 15:13:17 +01:00
@endforeach
@endif
2024-11-27 14:44:37 +01:00
</tbody>
</table>
</div>
</body>
2024-11-27 17:35:32 +01:00
</html>