{{-- Investor notes per startup, captured from the public committee-attendance portal. Props: $committee : Committee $investorNotesByStartup : Collection groupBy(startup_id) of CommitteeInvestorStartupNote rows (each with the `investor` relation loaded). Layout: one card per startup that has at least one note. Each card lists the investors' notes vertically with timestamps so the deal team can see who said what before/after the meeting. --}} @php $startupsById = $committee->startups->keyBy('id'); @endphp @php $hideOwnTitle = $hideOwnTitle ?? false; @endphp
@if (! $hideOwnTitle)

{{ __('admin.committees.notes.heading') }} ({{ $investorNotesByStartup->sum(fn ($g) => $g->count()) }})

@endif
@if ($investorNotesByStartup->isEmpty())
{{ __('admin.committees.notes.empty') }}
@else
@foreach ($investorNotesByStartup as $startupId => $notes) @php $startup = $startupsById[$startupId] ?? null; @endphp
{{ $startup?->display_name ?? __('admin.committees.notes.unknown_startup') }} @php $secondaryName = $startup ? (app()->getLocale() === 'ar' ? $startup->name_en : $startup->name) : null; @endphp @if ($startup && $secondaryName && $secondaryName !== $startup->display_name) · {{ $secondaryName }} @endif
{{ __('admin.committees.notes.investor_count', ['count' => $notes->count()]) }}
    @foreach ($notes as $note)
  • {{ $note->investor?->name ?? __('admin.committees.notes.unknown_investor') }} @if ($note->investor?->email) · {{ $note->investor->email }} @endif
    {{ $note->note }}
  • @endforeach
@endforeach
@endif