@foreach($items as $item) @php $tipoLabel = match ($item['actividad_tipo'] ?? $item['tipo'] ?? '') { 'cuestionario' => $item['tipo_label'] ?? 'Cuestionario', 'tarea' => 'Tarea', 'taller' => 'Taller', default => $item['tipo_label'] ?? 'Actividad', }; $fecha = $item['fecha'] ?? null; $fechaFin = isset($item['end_date']) && ($item['end_date'] ?? '') !== ($item['start_date'] ?? '') ? \Illuminate\Support\Carbon::parse($item['end_date']) : null; @endphp
{{ $fecha?->format('d') ?? '—' }} {{ $fecha?->translatedFormat('M') ?? '' }}

{{ $item['titulo'] }}

{{ $item['curso'] ?? 'Curso' }} · {{ $tipoLabel }} @if($fecha) · @if($fechaFin && ! $fechaFin->isSameDay($fecha)) {{ $fecha->siteFormatShort() }} — {{ $fechaFin->siteFormatShort() }} @else {{ $fecha->siteFormat() }} @endif @endif

@if(! empty($item['estado'])) @endif
@endforeach