@php $rounds = $startup->investmentRounds; $title = app()->getLocale() === 'ar' ? 'جولات الاستثمار' : 'Investment Rounds'; $currentLabel = app()->getLocale() === 'ar' ? 'الحالية' : 'Current'; $submittedLabel = app()->getLocale() === 'ar' ? 'وقت التقديم' : 'Submitted'; $statusName = static fn ($status) => app()->getLocale() === 'ar' ? ($status?->name_ar ?: $status?->name_en) : ($status?->name_en ?: $status?->name_ar); @endphp

{{ $title }} {{ $rounds->count() }}

@forelse ($rounds as $round)
#{{ $round->round_number }} @if ((int) $startup->current_investment_round_id === (int) $round->id){{ $currentLabel }}@endif
{{ $submittedLabel }}: {{ optional($round->submitted_at)->translatedFormat('j M Y, H:i') ?? '—' }}
@if ($round->group){{ $round->group->name }}@endif {{ $statusName($round->statusOption) ?: '—' }} {{ app()->getLocale() === 'ar' ? 'عرض التفاصيل' : 'View details' }}
@empty

{{ app()->getLocale() === 'ar' ? 'لا توجد جولات محفوظة بعد. سيتم ترحيل السجل التاريخي عند تشغيل الترحيل المعتمد.' : 'No investment-round history has been backfilled yet.' }}

@endforelse