@php
  use Illuminate\Support\Str;
  $orgNome = $organizzazione->fullName;
  $orgAttivita = $organizzazione->attivita;
  $orgAccent = $orgAttivita->first()?->colore ?: ($orgAccents[$orgIndex % count($orgAccents)]);
  $orgSearch = Str::lower($orgNome);
  $orgFeaturedId = null;
@endphp

<div
  class="welcome-bacheca__org-panel-body"
  data-org-panel="{{ $organizzazione->id }}"
  data-org-search="{{ Str::lower($orgNome . ' ' . $orgAttivita->pluck('nome')->join(' ')) }}"
  style="--org-accent: {{ $orgAccent }}"
  @if(!$isActive) hidden @endif
>
  <div class="welcome-bacheca__grid welcome-bacheca__org-grid" role="list">
    @foreach($orgAttivita as $attivita)
      @include('welcome._partials.attivita-card', [
        'attivita' => $attivita,
        'isFeatured' => $orgFeaturedId && $attivita->id === $orgFeaturedId,
        'orgSearch' => $orgSearch,
      ])
    @endforeach
  </div>
</div>
