@if(empty($insights['cluster']))

No cluster data available.

@else @php $c = $insights['cluster']; @endphp
Children in cluster {{ number_format($c['total_children']) }}
Currently sponsored {{ number_format($c['sponsored_children']) }} {{ $c['sponsorship_rate'] }}% of cluster
Same gender in cluster {{ number_format($c['same_gender']) }}
Update activity rank #{{ $c['update_rank'] }} {{ $c['update_percentile'] }}th percentile · avg {{ $c['cluster_avg_updates'] }}
@endif
@php $a = $insights['update_analytics']; @endphp @foreach([ ['label' => 'Schooling', 'pct' => $a['schooling_yes_pct'], 'count' => $a['schooling_yes'], 'total' => $a['total']], ['label' => 'Church attendance', 'pct' => $a['church_yes_pct'], 'count' => $a['church_yes'], 'total' => $a['total']], ['label' => 'Received coffee', 'pct' => $a['coffee_yes_pct'], 'count' => $a['coffee_yes'], 'total' => $a['total']], ['label' => 'Still at home', 'pct' => $a['at_home_pct'], 'count' => $a['at_home'], 'total' => $a['total']], ] as $bar)
{{ $bar['label'] }} {{ $bar['pct'] }}% ({{ $bar['count'] }}/{{ $bar['total'] }})
@endforeach
  • Harvesting coffee (updates){{ $a['harvesting_yes'] }}
  • Recent death reported{{ $a['recent_death_yes'] }}
  • Avg coffee plants{{ $a['avg_coffee_plants'] ? number_format($a['avg_coffee_plants'], 0) : '—' }}
  • Avg family children{{ $a['avg_family_children'] ?? '—' }}
  • Avg family adults{{ $a['avg_family_adults'] ?? '—' }}
@foreach($insights['yearly_updates']['values'] as $index => $value) @php $height = $insights['yearly_updates']['max'] > 0 ? max(8, round(($value / $insights['yearly_updates']['max']) * 100)) : 8; @endphp
{{ $value ?: '' }}
{{ $insights['yearly_updates']['labels'][$index] }}
@endforeach
@if(!empty($insights['update_analytics']['facilities']))
@foreach($insights['update_analytics']['facilities'] as $fac) {{ $fac['label'] }} @endforeach
@endif
@if(!empty($insights['update_analytics']['house_types']) || !empty($insights['update_analytics']['appearances']))
@if(!empty($insights['update_analytics']['house_types']))
@foreach($insights['update_analytics']['house_types'] as $type => $count) {{ ucfirst(str_replace('_', ' ', $type)) }}: {{ $count }} @endforeach
@endif @if(!empty($insights['update_analytics']['appearances']))
@foreach($insights['update_analytics']['appearances'] as $appearance => $count) {{ ucfirst($appearance) }}: {{ $count }} @endforeach
@endif
@endif @if(!empty($insights['status_timeline']))
@foreach($insights['status_timeline'] as $row) @endforeach
Date Status Type Details
{{ $row['date']?->format('M j, Y') }} {{ $row['status'] }} {{ ucfirst($row['type']) }} {{ $row['detail'] ?? '—' }} @if($row['extension_years']) · Extension {{ $row['extension_years'] }} yr(s): {{ $row['extension_reason'] }} @endif
@endif