view-articles

This commit is contained in:
paoloar77
2025-04-14 10:11:35 +02:00
parent d11b0b3583
commit 31d21b361b
2 changed files with 10 additions and 3 deletions

View File

@@ -275,6 +275,7 @@ class ArticleController extends Controller
DB::raw('COALESCE(u.totFat, 0) as totFat'), DB::raw('COALESCE(u.totFat, 0) as totFat'),
DB::raw('COALESCE(p.venduti3mesi, 0) as venduti3mesi'), DB::raw('COALESCE(p.venduti3mesi, 0) as venduti3mesi'),
DB::raw('COALESCE(t.fat3mesi, 0) as fat3mesi'), DB::raw('COALESCE(t.fat3mesi, 0) as fat3mesi'),
DB::raw('COALESCE(t.fat6mesi, 0) as fat6mesi'),
DB::raw('COALESCE(p.rank3M, 0) as rank3M'), DB::raw('COALESCE(p.rank3M, 0) as rank3M'),
DB::raw('COALESCE(t.fatrank3M, 0) as fatrank3M'), DB::raw('COALESCE(t.fatrank3M, 0) as fatrank3M'),
DB::raw('COALESCE(t2.fatrank6M, 0) as fatrank6M'), DB::raw('COALESCE(t2.fatrank6M, 0) as fatrank6M'),

View File

@@ -21,7 +21,6 @@
<th>ISBN</th> <th>ISBN</th>
<th>Collana</th> <th>Collana</th>
<th>Argomento</th> <th>Argomento</th>
<th>ListaArgomenti</th>
<th>Pagine</th> <th>Pagine</th>
<th>Misure</th> <th>Misure</th>
<th>Rank 3 M</th> <th>Rank 3 M</th>
@@ -32,6 +31,7 @@
<th>Ult 3 Mese</th> <th>Ult 3 Mese</th>
<th>Tot Fatt</th> <th>Tot Fatt</th>
<th>Fatt 3 Mesi</th> <th>Fatt 3 Mesi</th>
<th>Fatt 6 Mesi</th>
<th>Ult 6 Mesi</th> <th>Ult 6 Mesi</th>
<th>Ult Anno</th> <th>Ult Anno</th>
@@ -87,7 +87,9 @@
@endif @endif
</td> </td>
<td>@if (isset($articolo->ultimoOrdine)){{ \Carbon\Carbon::parse($articolo->ultimoOrdine)->format('d/m/Y') }}@endif <td>@if (isset($articolo->ultimoOrdine))
{{ \Carbon\Carbon::parse($articolo->ultimoOrdine)->format('d/m/Y') }}
@endif
</td> </td>
@@ -109,6 +111,10 @@
Fatt 3M: {{ $articolo->fat3mesi }} Fatt 3M: {{ $articolo->fat3mesi }}
@endif @endif
</td> </td>
<td>@if (isset($articolo->fat6mesi))
Fatt 3M: {{ $articolo->fat6mesi }}
@endif
</td>
<td>@if (isset($articolo->venduti6mesi)) <td>@if (isset($articolo->venduti6mesi))
{{ $articolo->venduti6mesi }} {{ $articolo->venduti6mesi }}
@endif @endif