'Acciones', 'name' => 'Nombre del Permiso', 'group_name' => 'Grupo', 'sub_group_name' => 'Subgrupo', 'action' => 'Acción', 'guard_name' => 'Guard', 'created_at' => 'Creado', 'updated_at' => 'Modificado', ]; } /** * Retorna el formato para cada columna. * * @return array */ protected function format(): array { return [ 'action' => [ 'formatter' => 'storeActionFormatter', 'onlyFormatter' => true, ], 'name' => [ 'switchable' => false, ], 'created_at' => [ 'formatter' => 'whitespaceNowrapFormatter', 'align' => 'center', 'visible' => false, ], 'updated_at' => [ 'formatter' => 'whitespaceNowrapFormatter', 'align' => 'center', 'visible' => false, ], ]; } /** * Sobrescribe la configuración base de la tabla. * * @return array */ protected function bootstraptableConfig(): array { return array_merge(parent::bootstraptableConfig(), [ 'sortName' => 'name', 'exportFileName' => 'Permisos', 'showFullscreen' => false, 'showPaginationSwitch'=> false, 'showRefresh' => false, 'pagination' => false, ]); } /** * Retorna la vista a renderizar por este componente. * * @return string */ protected function viewPath(): string { return 'vuexy-admin::livewire.permissions.index'; } }