src/Http/Controllers/HCLanguageController.php
public function index(): JsonResponse
    {
        $config = $this->makeView('language-view', trans('HCCore::languages.title.list'))
            ->addFormSource('add-new', 'language')
            ->addDataTable($this->getDataTable())
            ->setPermissions(['search'])
            ->toArray();

        return $this->response->success('OK', $config);
    }
public function index(): JsonResponse
    {
        $config = $this->makeView('language-view', trans('HCCore::languages.title.list'))
            ->addFormSource('add-new', 'language')
            ->addDataTable($this->getDataTable())
            ->setPermissions(['search'])
            ->toArray();

        return $this->response->success('OK', $config);
    }
public function index ( ) : JsonResponse { $ config = $ this -> makeView ( 'language-view' , trans ( 'HCCore::languages.title.list' ) ) -> addFormSource ( 'add-new' , 'language' ) -> addDataTable ( $ this -> getDataTable ( ) ) -> setPermissions ( [ 'search' ] ) -> toArray ( ) ; return $ this -> response -> success ( 'OK' , $ config ) ; }
Admin panel page config

@return JsonResponse
Admin panel page config