{{-- resources/views/public/athlete_card_mini.blade.php --}} @php $specs = collect(); $hasNR = false; if ($athlete->performances) { foreach ($athlete->performances as $perf) { if ($perf->discipline) { $specs->push($perf->discipline->name); } } } $specsText = $specs->unique()->count() > 0 ? $specs->unique()->implode(', ') : 'Belum ada spesialisasi'; if ($athlete->performanceHistories) { foreach($athlete->performanceHistories as $h) { if ($h->performanceRemarks && $h->performanceRemarks->contains('code', 'NR')) { $hasNR = true; break; } } } @endphp
@if($hasNR)
NR
@endif
@if($athlete->photo) @else
@endif

{{ $athlete->name }}

{{ $specsText }}

{{ $athlete->wilayah->nama ?? 'Indonesia' }} {{ $athlete->status == 'active' ? 'AKTIF' : 'NONAKTIF' }}