Files
apimacro/resources/views/export_articles_sales.blade.php
paoloar77 c05cf28ca9 modif
2024-12-07 15:28:56 +01:00

116 lines
5.0 KiB
PHP

<!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>
<th>Data Pubbl</th>
<th>ISBN</th>
<th>Pagine</th>
<th>Formato</th>
<th>Misure</th>
<th>Rank 3 M</th>
<th>Vendite 3 M</th>
<th>Rank 6 M</th>
<th>Vendite 6 M</th>
<th>Rank 1 Y</th>
<th>Vendite 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>
</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)
@if (isset($articolo->Ean13))
<tr>
<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>
<td>@if (isset($articolo->Pagine)){{ $articolo->Pagine }}@endif</td>
<td>@if (isset($articolo->IdTipoFormato)){{ $articolo->IdTipoFormato }}@endif</td>
<td>@if (isset($articolo->misure)){{ $articolo->misure }}@endif</td>
@if (isset($articolo->rank3M))
<td>{{ $articolo->rank3M }}</td>
@endif
@if (isset($articolo->vendite3M))
<td>{{ $articolo->vendite3M }}</td>
@endif
@if (isset($articolo->rank6M))
<td>{{ $articolo->rank6M }}</td>
@endif
@if (isset($articolo->vendite6M))
<td>{{ $articolo->vendite6M }}</td>
@endif
@if (isset($articolo->rank1Y))
<td>{{ $articolo->rank1Y }}</td>
@endif
@if (isset($articolo->vendite1Y))
<td>{{ $articolo->vendite1Y }}</td>
@endif
@if (isset($articolo->rank1Y))
<td>{{ $articolo->rank1Y }}</td>
@endif
<td>@if (isset($articolo->ultimoOrdine)){{ \Carbon\Carbon::parse($articolo->ultimoOrdine)->format('d/m/Y') }}@endif
</td>
@if (isset($articolo->totaleVenduto))
<td>{{ $articolo->totaleVenduto }}</td>
@endif
@if (isset($articolo->totaleVendutoUltimoMese))
<td>{{ $articolo->totaleVendutoUltimoMese }}</td>
@endif
@if (isset($articolo->totaleVendutoUltimi6Mesi))
<td>{{ $articolo->totaleVendutoUltimi6Mesi }}</td>
@endif
@if (isset($articolo->totaleVendutoUltimoAnno))
<td>{{ $articolo->totaleVendutoUltimoAnno }}</td>
@endif
@if (isset($articolo->totaleVendutoUltimi2Anni))
<td>{{ $articolo->totaleVendutoUltimi2Anni }}</td>
@endif
</tr>
@endif
@endforeach
@endif
</tbody>
</table>
</div>
</body>
</html>