app/Http/Controllers/HomePageController.php
public function userPageDefaultEdit(): ResponseInterface
    {
        $this->checkDefaultUserBlocksExist();

        $main_blocks = $this->userBlocks(-1, 'main');
        $side_blocks = $this->userBlocks(-1, 'side');
        $all_blocks  = $this->availableUserBlocks();
        $title       = I18N::translate('Set the default blocks for new users');
        $url_cancel  = route('admin-users');
        $url_save    = route('user-page-default-update');

        return $this->viewResponse('edit-blocks-page', [
            'all_blocks'  => $all_blocks,
            'can_reset'   => false,
            'main_blocks' => $main_blocks,
            'side_blocks' => $side_blocks,
            'title'       => $title,
            'url_cancel'  => $url_cancel,
            'url_save'    => $url_save,
        ]);
    }
public function userPageDefaultEdit(): ResponseInterface
    {
        $this->checkDefaultUserBlocksExist();

        $main_blocks = $this->userBlocks(-1, 'main');
        $side_blocks = $this->userBlocks(-1, 'side');
        $all_blocks  = $this->availableUserBlocks();
        $title       = I18N::translate('Set the default blocks for new users');
        $url_cancel  = route('admin-users');
        $url_save    = route('user-page-default-update');

        return $this->viewResponse('edit-blocks-page', [
            'all_blocks'  => $all_blocks,
            'can_reset'   => false,
            'main_blocks' => $main_blocks,
            'side_blocks' => $side_blocks,
            'title'       => $title,
            'url_cancel'  => $url_cancel,
            'url_save'    => $url_save,
        ]);
    }
public function userPageDefaultEdit ( ) : ResponseInterface { $ this -> checkDefaultUserBlocksExist ( ) ; $ main_blocks = $ this -> userBlocks ( - 1 , 'main' ) ; $ side_blocks = $ this -> userBlocks ( - 1 , 'side' ) ; $ all_blocks = $ this -> availableUserBlocks ( ) ; $ title = I18N :: translate ( 'Set the default blocks for new users' ) ; $ url_cancel = route ( 'admin-users' ) ; $ url_save = route ( 'user-page-default-update' ) ; return $ this -> viewResponse ( 'edit-blocks-page' , [ 'all_blocks' => $ all_blocks , 'can_reset' => false , 'main_blocks' => $ main_blocks , 'side_blocks' => $ side_blocks , 'title' => $ title , 'url_cancel' => $ url_cancel , 'url_save' => $ url_save , ] ) ; }
Show a form to edit the default blocks for new uesrs.

@return ResponseInterface
Show a form to edit the default blocks for new uesrs .