Adhesiones
@forelse ($adhesiones as $a)
{{ $a->convenio?->titulo ?? 'Convenio' }}
{{ $a->convenio?->modalidadLabel() }}
{{ ucfirst($a->estado) }}
Adhesión: {{ optional($a->fecha_adhesion)->format('d/m/Y') ?? '—' }}
@if ($a->estado === 'baja' && $a->fecha_baja) · Baja: {{ $a->fecha_baja->format('d/m/Y') }} @endif
@if ($a->estado === 'baja' && $a->motivo_baja)
Motivo de baja: {{ $a->motivo_baja }}
@endif
{{-- Acciones --}}
@if ($a->estado !== 'baja')
@endif
@if ($a->estado === 'activa')
@endif
@if ($a->estado !== 'activa')
@endif
{{-- Form inline de baja/suspensión --}}
@if ($accionId === $a->id)
@endif
{{-- Historial --}}
@if ($historialId === $a->id)
Historial
@forelse ($a->movimientos as $m)
{{ $movLabel[$m->tipo] ?? ucfirst($m->tipo) }}
{{ $m->fecha->format('d/m/Y') }}
@if ($m->detalle)— {{ $m->detalle }}@endif
@if ($m->registrador){{ $m->registrador->nombre ?? $m->registrador->name }}@endif
@empty
Sin movimientos.
@endforelse
@endif
@empty
La mutual todavía no tiene adhesiones a convenios.
@endforelse