Initial commit
This commit is contained in:
29
app/View/Components/AuthLayout.php
Normal file
29
app/View/Components/AuthLayout.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class AuthLayout extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
// Init layout file
|
||||
app(config('settings.KT_THEME_BOOTSTRAP.auth'))->init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represents the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view(config('settings.KT_THEME_LAYOUT_DIR').'._auth');
|
||||
}
|
||||
}
|
30
app/View/Components/DefaultLayout.php
Normal file
30
app/View/Components/DefaultLayout.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class DefaultLayout extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
// Init layout file
|
||||
app(config('settings.KT_THEME_BOOTSTRAP.default'))->init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\View|\Closure|string
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
// See also starterkit/app/Core/Bootstrap/BootstrapDefault.php
|
||||
return view(config('settings.KT_THEME_LAYOUT_DIR').'._default');
|
||||
}
|
||||
}
|
30
app/View/Components/SystemLayout.php
Normal file
30
app/View/Components/SystemLayout.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class SystemLayout extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
// Init layout file
|
||||
app(config('settings.KT_THEME_BOOTSTRAP.system'))->init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represents the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view(config('settings.KT_THEME_LAYOUT_DIR').'._system');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user