Skip to content

Instantly share code, notes, and snippets.

@joelhinz
Created October 17, 2018 09:20
Show Gist options
  • Save joelhinz/72779f5d33225a7972609750dc6f2e6a to your computer and use it in GitHub Desktop.
Save joelhinz/72779f5d33225a7972609750dc6f2e6a to your computer and use it in GitHub Desktop.
<?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