<commit_before><?php
View::composer( Config( "lara-cms.master.template_composer.menu" ), function($view)
{
    $menu = Cache::remember( 'active_menu_' . App\Menu::getIdActiveMenu(), Config::get( 'lara-cms.eva.master.life_cache' ), function()
            {
                $id = App\Menu::getIdActiveMenu();
                $menuActive = App\Menu::find( $id );
                $m = $menuActive->ancestorsAndSelf()->with( 'childs' )->get();
                $menu = array();
                foreach ($m as $v)
                {
                    $menu[] = $v->childs->toArray();
                }
                return $menu;
            } );

    $view->with( 'menu', $menu );
} );


View::composer( Config( "lara-cms.master.template_composer.list" ) , function($view)
{
    $menu = App\Menu::getActiveMenu();
    
    $cildMenus = $menu->leaves()->get();
    $list = [];
    $ids = [$menu->id];
    $ids_not = ($menu->page_id) ? [$menu->page_id] : [];
    foreach ($cildMenus as $val) 
    {
        $ids[] = $val->id;
        if ($val->page_id)
        {
            $ids_not[] = $val->page_id;
        }
    }

    if (sizeof($ids)>0)
    {
        $list = App\Page::whereIn('menu_id',$ids)->whereNotIn('id',$ids_not)->paginate(10);;
    }
    
    if ($list) {
        $list_pagin = [];<commit_msg>Размещение<commit_after><?php
View::composer( Config( "lara-cms.master.template_composer.menu" ), function($view)
{
    $menu = Cache::remember( 'active_menu_' . App\Menu::getIdActiveMenu(), Config::get( 'lara-cms.eva.master.life_cache' ), function()
            {
                $id = App\Menu::getIdActiveMenu();
                $menuActive = App\Menu::find( $id );
                $m = $menuActive->ancestorsAndSelf()->with( 'childs' )->get();
                $menu = array();
                foreach ($m as $v)
                {
                    $menu[] = $v->childs->toArray();
                }
                return $menu;
            } );

    $view->with( 'menu', $menu );
} );


View::composer( Config( "lara-cms.master.template_composer.list" ) , function($view)
{
    $page = new App\Page();
    $list = $page->getParentFromMenu()->paginate(10);
    
    if ($list) {
        $list_pagin = [];
{'fraction_non_alphanumeric': 0.19430637144148216, 'fraction_numerical': 0.0022593764121102574, 'mean_word_length': 1.952, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7337430', 'n_tokens_mistral': 759, 'n_tokens_neox': 728, 'n_words': 111}