Skip to content

Instantly share code, notes, and snippets.

@RJustice
Last active September 17, 2015 05:49
Show Gist options
  • Save RJustice/5b8afc535e10d4fdec0a to your computer and use it in GitHub Desktop.
Save RJustice/5b8afc535e10d4fdec0a to your computer and use it in GitHub Desktop.
public function panelStart()
{
Form::macro('panel_start', function ($title = '') {
return '<div class="panel panel-default">
<div class="panel-heading bg-white">
<span class="font-bold">' . $title . '</span>
</div>
<div class="panel-body">';
});
}
public function panelEnd()
{
Form::macro('panel_end', function ($submit_label = '') {
if (!$submit_label) {
return '';
}
$result = '</div><footer class="panel-footer">
<button type="submit" class="btn btn-info">' . $submit_label . '</button>
</footer></div>';
return $result;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment