Compose the view.

@param  \Illuminate\Contracts\View\View  $view
540698
public function compose(View $view)
    {
        $view->with('tagsRatios', $this->prepareRatios(
            $this->cachedTags()->load(['posts'])
        ));
    }
862649
public function dropAndCreateView(View $view)
    {
        $this->tryMethod('dropView', $view->getQuotedName($this->_platform));
        $this->createView($view);
    }
997950
public function composeWithAllRouteNames(View $view)
    {
        $routes = $this->getAllRouteNames();

        foreach ($routes as $action => $routeName) {
            $view->with("{$action}Route", $routeName);
        }
    }
41881
public function compose(View $view)
    {
        $locales = localization()->getSupportedLocales()->transform(function (Locale $locale) {
            return $locale->native();
        });

        $view->with('supportedLocales', $locales);
    }
80429
public function compose(View $view)
    {
        $stickiedIncidents = Incident::stickied()->orderBy('occurred_at', 'desc')->get()->groupBy(function (Incident $incident) {
            return app(DateFactory::class)->make($incident->is_scheduled ? $incident->scheduled_at : $incident->occurred_at)->toDateString();
        });

        $view->withStickiedIncidents($stickiedIncidents);
    }
195955
public function compose(View $view)
    {
        $status = $this->system->getStatus();

        $view->withSystemStatus(Arr::get($status, 'system_status'));
        $view->withSystemMessage(Arr::get($status, 'system_message'));
    }
188082
public function compose(View $view)
    {

        // This menu item declares the menu and
        // sets it as an array of arrays.
        $menu = [];

        // Load any package menus
        if (! empty(config('package.character.menu'))) {

            foreach (config('package.character.menu') as $menu_data) {

                $prepared_menu = $this->load_plugin_menu('character', $menu_data, true);
                if (! is_null($prepared_menu))
                    array_push($menu, $prepared_menu);

            }
        }

        // Sort the menu alphabetically.
        $menu = array_values(array_sort($menu, function ($value) {

            return $value['name'];

        }));

        $view->with('menu', $menu);
    }
1314155
public function compose(View $view)
    {
        if (! $this->site) {
            $this->site = Site::where('slug', Config::get('multisite.site'))->first();
        }

        $view->with('currentSite', $this->site);
    }
37997
protected function set_view()
	{
		$this->_view instanceOf View or $this->_view = \View::forge($this->_view);
	}
927144
public function compose(View $view)
    {
        $componentGroups = $this->getVisibleGroupedComponents();
        $ungroupedComponents = Component::ungrouped()->orderBy('status', 'desc')->get();

        $view->withComponentGroups($componentGroups)
            ->withUngroupedComponents($ungroupedComponents);
    }
162732
private function view(View $view): void
    {
        $this->group($view->getName(), false);
        $this->presentationModel($view->getPresentationModel(), 'presentationModel');
        $this->groupEnd();
    }
521505
protected function makeView($view)
    {
        if( Auth::check() ) {
            $this->addParameter( 'activeUser', Auth::user() );
        }

        return View::make( $view, $this->parameters );
    }
999908
public function composeFilters(View $view)
    {
        $roles   = $this->cacheResults('roles.filters', function () {
            return $this->role->has('users')->get();
        });

        $filters = new Collection;
        $filters->push(link_to_route('admin::auth.users.index', trans('core::generals.all')));

        foreach ($roles as $role) {
            /** @var  \Arcanesoft\Auth\Models\Role  $role */
            $filters->push(link_to_route('admin::auth.users.roles-filter.index', $role->name, [$role->hashed_id]));
        }

        $view->with('rolesFilters', $filters);
    }
712878
public function setViewLayout($view)
    {
        $this->layout         = $this->viewLayout->change($view);
        $this->layout->layout = $this->viewPath->setUp($this->layout->layout, null);
    }
1252
public function compose(View $view)
    {
        $displayMetrics = $this->config->get('setting.display_graphs');
        $metrics = $this->getVisibleMetrics($displayMetrics);

        $view->withDisplayMetrics($displayMetrics)
            ->withMetrics($metrics);
    }
904647
public function setView($view)
    {
        $view   = parent::setView($view);
        $format = $this->getRequest()->getFormat();

        if ($view instanceof KObjectIdentifier && $view->getPackage() != 'activities' && $format  !== 'html')
        {
            $manager = $this->getObject('manager');

            // Set the view identifier as an alias of the component view.
            if (!$manager->getClass($view, false))
            {
                $identifier = $view->toArray();
                $identifier['package'] = 'activities';
                unset($identifier['domain']);

                $manager->registerAlias($identifier, $view);
            }
        }

        return $view;
    }
211935
public function compose(View $view)
    {
        $categories = Category::with('posts')
            ->whereHas('posts', function (Builder $b) {
                // TODO: Try to export this code with model's scope ?
                $b->where('is_draft', false)
                  ->where('published_at', '<=', Carbon::now());
            })
            ->get()
            ->sortByDesc(function(Category $category) {
                return $category->posts->count();
            });

        $view->with('categoriesWidgetItems', $categories);
    }