for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JeroenNoten\LaravelAdminLte\Components;
use Illuminate\View\Component;
class Callout extends Component
{
/**
* The callout icon (a Font Awesome icon).
*
* @var string
*/
public $icon;
* The callout theme (info, success, warning or danger).
public $theme;
* The callout title.
public $title;
* Extra classes for the title container. This provides a way to customize
* the title style.
public $titleClass;
* Create a new component instance.
* @return void
public function __construct(
$theme = null, $icon = null, $title = null, $titleClass = null
) {
$this->theme = $theme;
$this->icon = $icon;
$this->title = $title;
$this->titleClass = $titleClass;
}
* Make the class attribute for the callout item.
* @return string
public function makeCalloutClass()
$classes = ['callout'];
if (! empty($this->theme)) {
$classes[] = "callout-{$this->theme}";
return implode(' ', $classes);
* Get the view / contents that represent the component.
* @return \Illuminate\View\View|string
public function render()
return view('adminlte::components.callout');