loading component hidden feature

This commit is contained in:
Burak Civan
2022-09-22 09:39:47 +03:00
parent 6424b29580
commit b163b1a03b
4 changed files with 74 additions and 6 deletions

View 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');
}
}

View 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');
}
}