@props([ 'actions' => null, 'stats' => null, 'tasks' => null, ]) @php $actions = $actions ?? collect([ ['label' => 'Nuova nota CRM', 'icon' => 'fa-note-sticky', 'color' => 'primary'], ['label' => 'Invia email', 'icon' => 'fa-envelope', 'color' => 'success'], ['label' => 'Invia SMS', 'icon' => 'fa-sms', 'color' => 'warning'], ['label' => 'Allega documento', 'icon' => 'fa-paperclip', 'color' => 'dark'], ['label' => 'Crea accesso web', 'icon' => 'fa-globe', 'color' => 'info'], ]); $stats = $stats ?? collect([ ['label' => 'Rate scadute', 'value' => '€ 1.240', 'hint' => '2 posizioni aperte', 'tone' => 'danger'], ['label' => 'Documenti mancanti', 'value' => '3', 'hint' => 'CF, IBAN, Documento identità', 'tone' => 'warning'], ['label' => 'Ticket aperti', 'value' => '1', 'hint' => 'Richiesta manutenzione caldaia', 'tone' => 'info'], ]); $tasks = $tasks ?? collect([ ['title' => 'Verificare codice fiscale importato', 'due' => 'Oggi', 'priority' => 'high'], ['title' => 'Aggiornare IBAN per addebito SDD', 'due' => 'Domani', 'priority' => 'medium'], ['title' => 'Confermare accesso al portale', 'due' => 'In settimana', 'priority' => 'low'], ]); @endphp

Azioni rapide

@foreach($actions as $action) @endforeach

Indicatori

@foreach($stats as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}

{{ $stat['hint'] }}
@endforeach

Attività da chiudere

@once @push('styles') @endpush @endonce