Make view.

@param string $name
@param array $data

@return string
19981
public function make($name, $data = [])
    {
        $view = $this->container->make('view');

        echo $view->make($name, $data)->render();
    }
87319
public static function createFromArray($name, array $data = [])
    {
        $type = parent::createFromArray($name, $data);
        \assert($type instanceof self);

        foreach ($data as $key => $value) {
            switch ($key) {
                case 'minimum':
                    $type->setMinimum($value);

                    break;
                case 'maximum':
                    $type->setMaximum($value);

                    break;
                case 'format':
                    $type->setFormat($value);

                    break;
                case 'multipleOf':
                    $type->setMultipleOf($value);

                    break;
            }
        }

        return $type;
    }
237209
public function viewIf($condition, string $name, array $data = null)
    {
        return $this->addIf($condition, View::create($name, $data));
    }
60175
public function element($name, array $data = [])
    {
        $view = new View();
        $view->type(self::VIEW_TYPE_ELEMENT);
        $view->set(array_merge($this->viewVars, $data));
        return $view->render($name);
    }
769439
public function make($view, $data = array(), $mergeData = array())
	{
		$path = $this->finder->find($view);

		$data = array_merge($mergeData, $this->parseData($data));

		$this->callCreator($view = new View($this, $this->getEngineFromPath($path), $view, $path, $data));

		return $view;
	}
49545
public function setViewElement(string $name, array $data = [], array $options = []): void
    {
        $this->viewElement = [$name, $data, $options];
    }
1015834
public function make(string $name, array $data = [], \Closure $callback = null)
    {
        $this->setWidgetName($name);
        $this->data = $data;
        /*
         | If second param given as closure then we will
         | return callback
         */
        if (!is_null($callback) && $callback instanceof \Closure) {
            return $callback($this);
        }

        /*
         | return object
         */
        return $this->render();
    }
428285
public function view($view, $data = array(), $mergeData = array())
    {
        return $this->views->make($this->getThemeNamespace($view), $data, $mergeData);
    }
924171
public function render($name, array $data = [])
    {
        $content = $this->partial($name, $data);

        if (isset($this->layout)) {
            $template = new PhpTemplate($this->manager);
            $template->sections['content'] = $content;
            return $template->render($this->layout, array_merge($data, $this->layoutData));
        }
        
        return $content;
    }
616031
public function make( $view, $data = [] ) {
		return new View( $this, $this->engine, $this->view( $view ), $this->create_data( $data ) );
	}
293484
public function format($data, $name = null)
    {
        return $this->getHeader()
        . $this->partialFormat($data, $name)
        . $this->getFooter();
    }
1373604
public function view($view, $data = [], $mergeData = [])
    {
        return $this->app['view']->make($this->viewname($view), $data, $mergeData);
    }
1248477
protected function view($name, array $data = [])
    {
        $name = is_null($this->viewNamespace) ? $name : "{$this->viewNamespace}::$name";

        return parent::view($name, $data);
    }
259011
public function make($view, $data = [])
    {
        try {
            return $this->view->make($view, $data)->render();
        } catch (\InvalidArgumentException $e) {
            throw new ViewNotFoundException("No file found at '{$view}'");
        }
    }
293938
protected function form($name, array $options = [], array $data = [])
    {
        return \App::make('laravel-form-builder')->create($name, $options, $data);
    }
876835
public function view($name)
    {
        $this->_view = View::make($name);

        $vars = get_object_vars($this);

        foreach ($vars as $key => $value) {
            if (!in_array($key, ['_view', '_text', '_type', '_subject', '_sender_name', '_sender_mail'])) {
                $this->_view->with($key, $value);
            }
        }

        $this->_type = 'text/html';

        return $this;
    }
645897
public function layout($name, array $data = [])
    {
        $this->layoutName = $name;
        $this->layoutData = $data;
        $this->engine->getProject()->get('file_layout_cache')->merge([$this->file->getUid() => [$this->layoutName]]);
    }