<div>
    @component('common.breadcrumb',['addBtn' => true,
                'permission_create' => 'Company_employee_psychotechnics_test_index',
                'breadcrumb_show' => $breadcrumb_show]
                )   <!-- componente de breadcrumb -->
        @slot('breadcrumb_title')
            <h3>{{ $componentName }} | {{ $pageTitle }}</h3>
        @endslot
        <li class="breadcrumb-item">Empleado</li>
        <li class="breadcrumb-item active">Pruebas Psico-técnicas</li>
        @slot('buttons_extras')
        @can('Company_employee_psychotechnics_test_create')
            <li>
                <a href="javascript:void(0)" wire:click.prevent="openAddPST()"
                    class="btn btn-square btn-primary txt-white" >
                    Agregar <i class="fa fa-plus"></i>
                </a>
            <li>
        @endcan
        @endslot
    @endcomponent
    @include('common.searchbox')
    <div class="container-fluid">
        <div class="row layout-top-spacing">
            <div class="col-sm-12">
                <div class="card">
                    <div class="table-responsive">
                        <table class="table">
                            <thead class="bg-primary">
                                <tr>
                                    <th scope="col">ID</th>
                                    <th scope="col">NOMBRE @include('common.orderby', ['column' => 'name'])</th>
                                    <th scope="col" class="text-center">ACCIONES</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach($upts as $upt)
                                    <tr>
                                        <td>{{ $upt->id }}</td>
                                        <td>{{ $upt->name }}</td>
                                        <td class="text-center">
                                            @can('Company_employee_psychotechnics_test_update')
                                            <a href="javascript:void(0)" wire:click="ViewPST({{ $upt->id }})"
                                                class="btn btn-outline-primary" title="Ver">
                                                <i class="fas fa-eye"></i>
                                            </a>
                                            @endcan
                                            @can('Company_employee_psychotechnics_test_delete')
                                            <a href="javascript:void(0)" onclick="ConfirmCV('{{ $upt->id }}','PST')"
                                                class="btn btn-outline-danger " title="Eliminar">
                                                <i class="fas fa-trash"></i>
                                            </a>
                                            @endcan
                                        </td>
                                    </tr>
                                @endforeach
                            </tbody>
                        </table>
                        {{ $upts->links() }}
                    </div>
                </div>
            </div>
        </div>
        @include('livewire.company.employee.detail.psychotechnics-test.form')
    </div>
</div>
@include('common.scriptsCompCV', ['ComponentId' => 'PST'])
