2020-07-22 16:18:56 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\View\Components;
|
|
|
|
|
|
|
|
|
|
use Illuminate\View\Component;
|
|
|
|
|
|
|
|
|
|
class Panel extends Component
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The Panel title.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
public $title;
|
|
|
|
|
|
2020-07-24 06:13:00 +02:00
|
|
|
/**
|
|
|
|
|
* The Panel body class.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
public $body_class;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The Panel footer class.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
public $footer_class;
|
|
|
|
|
|
2020-07-22 16:18:56 +02:00
|
|
|
/**
|
|
|
|
|
* Create a new component instance.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2020-07-24 06:13:00 +02:00
|
|
|
public function __construct($title = null, $bodyClass = null, $footerClass = null)
|
2020-07-22 16:18:56 +02:00
|
|
|
{
|
|
|
|
|
$this->title = $title;
|
2020-07-24 06:13:00 +02:00
|
|
|
$this->body_class = $bodyClass;
|
|
|
|
|
$this->footer_class = $footerClass;
|
2020-07-22 16:18:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the view / contents that represent the component.
|
|
|
|
|
*
|
|
|
|
|
* @return \Illuminate\View\View|string
|
|
|
|
|
*/
|
|
|
|
|
public function render()
|
|
|
|
|
{
|
|
|
|
|
return view('components.panel');
|
|
|
|
|
}
|
|
|
|
|
}
|