Add all files
This commit is contained in:
34
app/View/Components/AppLayout.php
Normal file
34
app/View/Components/AppLayout.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class AppLayout extends Component
|
||||
{
|
||||
public $title;
|
||||
|
||||
public $clients;
|
||||
|
||||
public $description;
|
||||
|
||||
public $image;
|
||||
|
||||
public function __construct($title = '', $clients = false, $description = null, $image = null)
|
||||
{
|
||||
$this->title = $title;
|
||||
$this->clients = $clients ? true : false;
|
||||
$this->description = $description;
|
||||
$this->image = $image;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represents the component.
|
||||
*
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view('layouts.app');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user