loading component hidden feature
This commit is contained in:
32
app/View/Components/Loading/Absolute.php
Normal file
32
app/View/Components/Loading/Absolute.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\Loading;
|
||||
|
||||
use App\Abstracts\View\Component;
|
||||
|
||||
class Absolute extends Component
|
||||
{
|
||||
public $hidden;
|
||||
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(
|
||||
bool $hidden = false,
|
||||
|
||||
) {
|
||||
$this->hidden = $hidden;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\View|string
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view('components.loading.absolute');
|
||||
}
|
||||
}
|
32
app/View/Components/Loading/Content.php
Normal file
32
app/View/Components/Loading/Content.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\Loading;
|
||||
|
||||
use App\Abstracts\View\Component;
|
||||
|
||||
class Content extends Component
|
||||
{
|
||||
public $hidden;
|
||||
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(
|
||||
bool $hidden = false,
|
||||
|
||||
) {
|
||||
$this->hidden = $hidden;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\View|string
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return view('components.loading.content');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user