@props([ 'name', 'title', 'weight', 'score', 'suggested' => null, 'method' => null, 'source' => null, ]) @php $schedule = strtoupper((string) $source) === 'CRA' ? 'Schedule 2' : 'Schedule F'; $methodLabels = [ // Revenue (R1) 'schedule_f_expenditures' => $schedule . ' · Foreign Expenditures', 'schedule_f_assistance' => $schedule . ' · Foreign Assistance', 'ccew_institutional_grants_proxy' => 'CCEW · Institutional Grants Proxy', 'ccew_foreign_no_grants' => 'CCEW · Foreign Areas, No Grants', 'foreign_no_amount' => 'Foreign Activity · No Amount', 'no_foreign_activity' => 'No Foreign Activity', 'not_applicable' => 'Not Applicable', // Religious (R2) 'identity_a_keyword_plus_classification' => 'Identity · Keywords + Classification', // Recipient (R3) 'regions_recipient_count' => 'Region · Recipient-Weighted', 'regions_amount' => 'Region · Amount-Weighted', 'country_codes' => 'Country Codes · Equal-Weight', 'ccew_equal_weight_country' => 'CCEW · Country Equal-Weight', 'foreign_no_geography' => 'Foreign Activity · No Geography', 'domestic_only' => 'Domestic Only', // Results (R4) — emitted as `${SOURCE}_results` 'IRS_results' => 'IRS · Governance + Specialization', 'CCEW_results' => 'CCEW · Governance + Specialization', 'CRA_results' => 'CRA · Staffing + Specialization', ]; $methodLabel = $method ? ($methodLabels[$method] ?? $method) : null; $scoreColor = \App\Support\CharityPresenter::scoreColor($score ?? 0); @endphp