Created
October 17, 2018 09:20
-
-
Save joelhinz/72779f5d33225a7972609750dc6f2e6a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Render the view partial for the side component. | |
* | |
* @return string | |
*/ | |
public function renderView() | |
{ | |
$data = [ | |
'divider' => $this->divider, | |
'contents' => $this->converted, | |
'prefix' => $this->prefix, | |
]; | |
if ($this->table) { | |
$data['table'] = $this->table; | |
} | |
if ($this->report) { | |
$data['errors'] = $this->errors; | |
} | |
return view('review-side-components.partials.component', $data)->render(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment