From 554212fd0b779330d516f06ad8ee74d17f7bf7e2 Mon Sep 17 00:00:00 2001 From: michele Date: Mon, 13 Apr 2026 07:07:06 +0000 Subject: [PATCH] Add metadata source badges and ticket acqua light --- .../Pages/Supporto/TicketAcquaLight.php | 22 ++ .../Pages/Supporto/TicketGestione.php | 5 + .../supporto/ticket-acqua-light.blade.php | 299 ++++++++++++++++++ .../pages/supporto/ticket-acqua.blade.php | 10 + .../pages/supporto/ticket-gestione.blade.php | 8 + .../pages/supporto/ticket-mobile.blade.php | 8 + 6 files changed, 352 insertions(+) create mode 100644 app/Filament/Pages/Supporto/TicketAcquaLight.php create mode 100644 resources/views/filament/pages/supporto/ticket-acqua-light.blade.php diff --git a/app/Filament/Pages/Supporto/TicketAcquaLight.php b/app/Filament/Pages/Supporto/TicketAcquaLight.php new file mode 100644 index 0000000..26a2dba --- /dev/null +++ b/app/Filament/Pages/Supporto/TicketAcquaLight.php @@ -0,0 +1,22 @@ + null, 'exif_datetime' => null, 'device' => null, + 'capture_source' => null, 'file_label' => null, 'original_label' => null, 'other' => [], diff --git a/resources/views/filament/pages/supporto/ticket-acqua-light.blade.php b/resources/views/filament/pages/supporto/ticket-acqua-light.blade.php new file mode 100644 index 0000000..a8fce41 --- /dev/null +++ b/resources/views/filament/pages/supporto/ticket-acqua-light.blade.php @@ -0,0 +1,299 @@ + +
+ @if ($errors->any()) +
+
Controlla i dati prima di inviare
+
    + @foreach ($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + +
+
+
+

Ticket Acqua Light

+
Flusso rapido per studio e collaboratori: cerca l'unità, conferma il nominativo, scatta la foto e registra la lettura.
+
+
Versione rapida affiancata alla completa
+
+
+ +
+
+
+
+ + + + + + + + + + + + +
+
Riportare solo i numeri neri
+
+
+ @for($i = 0; $i < 5; $i++) +
+ @endfor +
+
+
+
+ @for($i = 0; $i < 4; $i++) +
NO
+ @endfor +
+
+
+
Le immagini che hai fornito funzionano bene come guida visiva: mostrano chiaramente che vanno riportate solo le cifre nere.
+
+
+
+
+ +
+
+
Lettura attuale del contatore
+ + @if($previousReading) +
Ultima lettura nota: {{ number_format((float) $previousReading['value'], 3, ',', '.') }} del {{ $previousReading['date'] ?: 'n/d' }}
+ @endif +
+ +
+ +
+ +
+ +
+ + Registra lettura light + Salvataggio... + +
+
+
+
+
+
\ No newline at end of file diff --git a/resources/views/filament/pages/supporto/ticket-acqua.blade.php b/resources/views/filament/pages/supporto/ticket-acqua.blade.php index 7261597..6f26673 100644 --- a/resources/views/filament/pages/supporto/ticket-acqua.blade.php +++ b/resources/views/filament/pages/supporto/ticket-acqua.blade.php @@ -287,6 +287,13 @@ $device = trim((string) data_get($metadata, 'device', '')); @endphp @if($hasGps || $exifDate !== '' || $device !== '') +
+ @if(($metadata['capture_source'] ?? null) === 'camera') + GPS da browser + @elseif(($metadata['capture_source'] ?? null) === 'attachment') + EXIF da libreria + @endif +
@if($hasGps)
Coordinate: {{ number_format((float) $gpsLat, 5, '.', '') }}, {{ number_format((float) $gpsLng, 5, '.', '') }}
@@ -297,6 +304,9 @@ @if($device !== '')
Dispositivo: {{ $device }}
@endif + @if(!empty($metadata['capture_source'])) +
Sorgente metadati: {{ $metadata['capture_source'] === 'camera' ? 'browser/camera live' : $metadata['capture_source'] }}
+ @endif
@endif