← Volver a mutuales @if (session('ok'))
{{ session('ok') }}
@endif @php $estBadge = ['activa' => 'bg-success', 'suspendida' => 'bg-warning text-dark', 'baja' => 'bg-secondary']; $movLabel = ['alta' => 'Alta', 'baja' => 'Baja', 'suspension' => 'Suspensión', 'reactivacion' => 'Reactivación', 'nota' => 'Nota']; @endphp {{-- Alta --}}

Adherir a un convenio

@if ($conveniosDisponibles->isEmpty())

La mutual ya figura en todos los convenios cargados.

@else
@error('nuevoConvenioId') {{ $message }} @enderror
@error('fechaAdhesion') {{ $message }} @enderror
@endif
{{-- Lista de adhesiones --}}

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)
@error('accionFecha') {{ $message }} @enderror
@error('accionMotivo') {{ $message }} @enderror
@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