@if($clientiObsoleti->count() > 0)
@foreach($clientiObsoleti as $cliente) @endforeach
ID Cliente Nome Cliente ID Utente Nome Utente Data Ultima Analisi Pre-2020 Totale Analisi Analisi Pre-2020 Notifica Mail Reminder Inviata Azioni
{{ $cliente->cliente_id }} {{ $cliente->nome_cliente }} {{ $cliente->CreatedBy }} {{ $cliente->nome_utente }} @if($cliente->data_analisi_pre_2020) {{ \Carbon\Carbon::parse($cliente->data_analisi_pre_2020)->format('d/m/Y') }} @else N/A @endif {{ $cliente->totale_analisi ?? 1 }} {{ $cliente->analisi_pre_2020 }} @if(isset($cliente->notifica_attiva) && $cliente->notifica_attiva)
Attiva
{{ \Carbon\Carbon::parse($cliente->data_notifica)->format('d/m/Y H:i') }}
@else Non attiva @endif
@if(isset($cliente->reminder_inviato_at) && $cliente->reminder_inviato_at)
Inviata
{{ \Carbon\Carbon::parse($cliente->reminder_inviato_at)->format('d/m/Y H:i') }}
@else Non inviata @endif
@csrf
{{ $clientiObsoleti->links() }}
@else
Nessun cliente obsoleto trovato.
@endif @if(isset($statistiche) && $statistiche->count() > 0)
Statistiche per Utente
@foreach($statistiche as $stat) @endforeach
Utente Numero Clienti Obsoleti Notifica Mail Reminder Inviata Azioni
{{ $stat['nome_utente'] }} {{ $stat['count'] }} @if(isset($stat['notifica_attiva']) && $stat['notifica_attiva'])
Attiva
{{ \Carbon\Carbon::parse($stat['data_notifica'])->format('d/m/Y H:i') }} @if(isset($stat['giorni_passati']))
{{ $stat['giorni_passati'] }} giorni fa @endif
@else Non attiva @endif
@if(isset($stat['reminder_inviato_at']) && $stat['reminder_inviato_at'])
Inviata
{{ \Carbon\Carbon::parse($stat['reminder_inviato_at'])->format('d/m/Y H:i') }}
@else Non inviata @endif
@csrf
Esporta CSV
@csrf
@if(isset($stat['notifica_attiva']) && $stat['notifica_attiva'])
@csrf
@if(isset($stat['puo_inviare_reminder']) && $stat['puo_inviare_reminder'])
@csrf
@else @php $giorniRimanenti = max(0, 7 - ($stat['giorni_passati'] ?? 0)); @endphp @endif @endif
@endif