<div>
    <h3>{{ $componentName }} </h3>

    <div class="container-fluid">
        <div class="row layout-top-spacing">
            <div class="col-sm-12">
                @if ($this->activeButtonSaveUpdate)
                    <a href="javascript:void(0)" wire:click.prevent="openAddSK()"
                        class="btn btn-square btn-primary txt-white mb-4 mt-4">
                        Agregar <i class="fa fa-plus"></i>
                    </a>
                @endif

                <ul class="list-group list-group-flush">
                    @foreach ($skills as $skill)
                        <li class="list-group-item">
                            <div class="row">
                                <div class="col-sm-12 col-md-3">
                                    <h5>Habilidad: </h5>
                                </div>
                                <div class="col-sm-12 col-md-6 d-flex align-items-end justify-content-start">
                                    @if ($skill->info != null)
                                        <p>{{ $skill->info }}</p>
                                    @endif
                                </div>

                                <div class="col-sm-12 col-md-2 d-flex align-items-center justify-content-end">
                                    @if ($this->activeButtonSaveUpdate)
                                        <span wire:click="EditSK({{ $skill->id }})"
                                            class="c-pointer action-box large complete-btn f-right" title="Editar">
                                            <i class="fas fa-edit f-20 text-primary"></i>
                                        </span>
                                        <span onclick="ConfirmCV('{{ $skill->id }}','SK')"
                                            class="c-pointer action-box large complete-btn f-right" title="Eliminar">
                                            <i class="fas fa-trash f-20 text-danger"></i>
                                        </span>
                                    @endif
                                </div>
                            </div>
                        </li>
                    @endforeach
                </ul>
            </div>
        </div>
    </div>
    @include('livewire.cv-employee.detail.partials.skills.form')
    @include('common.scriptsCompCV', ['ComponentId' => 'SK'])
</div>
