@php $hasTextRefs = false; @endphp
@foreach ($categories as $category)
@php
$categoryTextRefs = $category->references->filter(fn($r) => empty($r->logo));
@endphp
@if($categoryTextRefs->isNotEmpty())
@php $hasTextRefs = true; @endphp
{{ $category->name }}
@foreach($categoryTextRefs as $ref)
-
{{ $ref->name }}
@if($ref->position || $ref->company)
{{ implode(' - ', array_filter([$ref->position, $ref->company])) }}
@endif
@if($ref->description)
"{{ $ref->description }}"
@endif
@endforeach
@endif
@endforeach
@if(!$hasTextRefs)
{{ __('No hay referencias de texto disponibles.') }}
@endif