@props([ 'breadcrumbs' => [ ['label' => 'Dashboard', 'icon' => 'fa-home', 'route' => '#'], ['label' => 'Anagrafica unica', 'icon' => 'fa-id-card', 'route' => '#'], ], 'condominium' => null, 'subject' => null, 'indicators' => [ ['label' => 'Unità collegate', 'value' => '—', 'icon' => 'fa-building', 'tone' => 'primary'], ['label' => 'Rate scadute', 'value' => '—', 'icon' => 'fa-receipt', 'tone' => 'warning'], ['label' => 'Ticket aperti', 'value' => '—', 'icon' => 'fa-headset', 'tone' => 'info'], ], 'showBreadcrumbs' => true, ]) @php $condominium = $condominium ?? [ 'name' => 'Condominio Demo', 'code' => 'CDM-001', 'address' => 'Via Esempio 1, Roma', 'units' => 24, ]; $subject = $subject ?? [ 'name' => 'Michele Barone', 'code' => 'SUB-2149', 'roles' => ['Proprietario', 'Cliente'], 'status' => 'Attivo', 'phone' => '+39 06 000000', 'email' => 'm.barone@example.com', ]; @endphp
@if($showBreadcrumbs)
@foreach($breadcrumbs as $crumb)
@isset($crumb['icon']) @endisset {{ $crumb['label'] }}
@if(! $loop->last) @endif @endforeach
@endif
{{ collect(explode(' ', $subject['name']))->map(fn($part) => substr($part, 0, 1))->take(2)->implode('') }}

{{ $subject['name'] }}

Codice {{ $subject['code'] }} @foreach($subject['roles'] as $role) {{ $role }} @endforeach {{ $subject['status'] }}
{{ $subject['phone'] }} {{ $subject['email'] }}

Condominio attivo

{{ $condominium['name'] }}

Codice {{ $condominium['code'] }}

{{ $condominium['units'] }} unità

{{ $condominium['address'] }}

@foreach($indicators as $indicator)

{{ $indicator['label'] }}

{{ $indicator['value'] }}

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