@if (isset($socios) && is_array($socios) && sizeof($socios) > 0)
    <div class="row">
        <div class="col-sm-12">
            <h5>Socios</h5>
            <table class="table">
                <thead>
                    <tr>
                        <th>{{ ($es_sociedad) ? 'Nombre' : 'Razon Social' }}</th>
                        <th>CUIT</th>
                        <th>Cargo</th>
                        <th>Ultimo</th>
                        <th>Desde</th>
                        <th>Hasta</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach ($socios as $socio)
                                @php
                                    $socio = (object) $convertirStringsVaciosEnNull((array) $socio);
                                    $socio->desde = $convertirFormatoFecha($socio->desde, 'Y-m', 'm/Y');
                                    $socio->hasta = $convertirFormatoFecha($socio->hasta, 'Y-m', 'm/Y');
                                @endphp
                                <tr>
                                    <td>{{ $socio->nombre_persona ?? '-' }}</td>
                                    <td>{{ $socio->cuit_persona ?? '-' }}</td>
                                    <td>{{ $socio->cargo_nombre ?? '-' }}</td>
                                    <td>{{ $socio->ultimo ?? '-' }}</td>
                                    <td>{{ $socio->desde ?? '-' }}</td>
                                    <td>{{ $socio->hasta ?? '-' }}</td>
                                </tr>
                    @endforeach
                </tbody>
            </table>
            <br><br>
        </div>
    </div>
@endif