{{-- An organization's badges. $org (may be null), $compact: only Verified and the founding tier (job cards). --}} @php $list = \App\Services\Orgs\Badges::shown($org ?? null, empty($compact)); // The badge vouches for the organization, not for the name typed on a post: say whose it is when they differ. $whose = ($org ?? null) && isset($postName) && \App\Services\Orgs\VerificationChecker::nameKey($postName) !== \App\Services\Orgs\VerificationChecker::nameKey($org->display_name) ? $org->display_name : null; @endphp @if ($list) @foreach ($list as $b) @if ($b['key'] === 'no_ghosting')@include('partials.ghost-icon'){{ $b['label'] }}@continue @endif @if ($b['kind'] === 'verified')@endif{{ $b['kind'] === 'verified' ? (! empty($compact) ? 'Verified' : $b['label']).($whose ? ': '.$whose : '') : $b['label'] }} @endforeach @endif