<div>
    @component('common.breadcrumb', ['addBtn' => true, 'permission_create' => 'Company_type_psychotechnics_test_create', 'breadcrumb_show' => $breadcrumb_show])
        @slot('breadcrumb_title')
            <h3>{{ $componentName }} | {{ $pageTitle }}</h3>
        @endslot
        <li class="breadcrumb-item">Empresa</li>
        <li class="breadcrumb-item active">{{ $componentName }}</li>
    @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($tppts as $tppt)
                                    <tr>
                                        <td>{{ $tppt->id }}</td>
                                        <td>{{ $tppt->name }}</td>
                                        <td class="text-center">
                                            @can('Company_type_psychotechnics_test_update')
                                            <a href="javascript:void(0)" wire:click="Edit({{ $tppt->id }})"
                                                class="btn btn-outline-primary" title="Editar">
                                                <i class="fas fa-edit"></i>
                                            </a>
                                            @endcan
                                            @can('Company_type_psychotechnics_test_delete')
                                            <a href="javascript:void(0)" onclick="Confirm('{{ $tppt->id }}')"
                                                class="btn btn-outline-danger " title="Eliminar">
                                                <i class="fas fa-trash"></i>
                                            </a>
                                            @endcan
                                        </td>
                                    </tr>
                                @endforeach
                            </tbody>
                        </table>
                        {{ $tppts->links() }}
                    </div>
                </div>
            </div>
        </div>
        @include('livewire.company.type-psychotechnics-test.form')
    </div>
</div>
@include('common.scriptsCompStandar')
