@php $d = $breakdown['irs_data']; $components = $breakdown['components']; $suggested = $breakdown['suggested']; $method = $breakdown['method']; $confidence = $breakdown['confidence'] ?? null; [$profComp, $specComp, $concComp] = $components; $source = $d['source'] ?? 'IRS'; $schedule = strtoupper((string) $source) === 'CRA' ? 'Schedule 2' : 'Schedule F'; $signals = (array) ($d['professionalism_signals'] ?? []); $concDetail = $d['concentration_detail'] ?? null; $concMethod = $concDetail['method'] ?? 'none'; $bar = fn($earned, $max) => $earned === null || !$max ? 0 : max(2, min(100, ($earned / $max) * 100)); $sourceCopy = match ($source) { 'CCEW' => 'CCEW governance signals (4 max, scaled to 5): conflict policy, whistleblower / serious-incident policy, board ≥ 5 trustees, document retention policy.', 'CRA' => 'CRA staffing signals (5 max): senior operating title (CEO/ED/President), employees > 0, ≥ $80k comp band, salaries/revenue ∈ [0.05, 0.40], program descriptions filed.', default => 'IRS governance signals (5 max): audited financials, conflict policy, whistleblower policy, document retention policy, documented CEO comp process or board > 5 voting members.', }; $concCopy = match ($concMethod) { 'hhi' => 'Herfindahl–Hirschman Index on ' . $schedule . ' grant amounts by region. HHI × 5 — higher = more concentrated impact.', 'inverse_count' => 'No spend split by country, so 5 ÷ (countries served). Fewer countries → higher concentration.', default => 'No foreign country data — concentration is omitted from R4.', }; @endphp
Results splits into three roughly equal components: Professionalism (33), Specialization (33), Concentration (34). When concentration is unavailable (no foreign country data) it is omitted and the remaining two are renormalized to /100.
| Source | {{ $source }} | |
| Employees | {{ number_format($d['employees']) }} | |
| Foreign Offices | {{ number_format($d['foreign_offices']) }} | |
| Programs Reported | {{ $d['program_count'] > 0 ? number_format($d['program_count']) : '—' }} | {{ $d['program_count'] === 0 ? 'Unknown' : '' }} |
| Recipient Countries | {{ number_format($d['n_countries']) }} | |
| Voting / Independent Members | {{ $d['voting_members'] }} / {{ $d['independent_members'] }} | {{ $d['board_indep_pct'] !== null ? $d['board_indep_pct'].'% indep.' : '—' }} |
| Audited Financials | {{ $d['audited'] ? 'Yes' : 'No' }} | |
| Conflict of Interest Policy | {{ $d['conflict_policy'] ? 'Yes' : 'No' }} | |
| Whistleblower Policy | {{ $d['whistleblower_policy'] ? 'Yes' : 'No' }} | |
| Document Retention Policy | {{ $d['doc_retention_policy'] ? 'Yes' : 'No' }} | |
| 990 Provided to Board | {{ $d['form990_to_board'] ? 'Yes' : 'No' }} | |
| Conflict of Interest Policy | {{ $d['conflict_policy'] ? 'Yes' : 'No' }} | |
| Whistleblower / Serious Incident | {{ $d['whistleblower_policy'] ? 'Yes' : 'No' }} | |
| Document Retention Policy | {{ $d['doc_retention_policy'] ? 'Yes' : 'No' }} | |
| Accounts Qualified | @if($d['accounts_qualified'] === null) — @else {{ $d['accounts_qualified'] ? 'Yes (qualified)' : 'No (clean opinion)' }} @endif |