改进
This commit is contained in:
parent
39f6ea04b0
commit
da8d3bc2d7
@ -1,34 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\View\Components;
|
|
||||||
|
|
||||||
use Illuminate\Contracts\View\View;
|
|
||||||
use Illuminate\View\Component;
|
|
||||||
|
|
||||||
class BasicCard extends Component
|
|
||||||
{
|
|
||||||
public string $title;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a new component instance.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function __construct($title)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
$this->title = $title;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the view / contents that represent the component.
|
|
||||||
*
|
|
||||||
* @return View
|
|
||||||
*/
|
|
||||||
public function render(): View
|
|
||||||
{
|
|
||||||
return view('components.basic-card', [
|
|
||||||
'title' => $this->title,
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
class HostStatus extends Component
|
class HostStatus extends Component
|
||||||
{
|
{
|
||||||
public string|null $status = null;
|
public ?string $status = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new component instance.
|
* Create a new component instance.
|
||||||
@ -16,8 +16,6 @@ class HostStatus extends Component
|
|||||||
*/
|
*/
|
||||||
public function __construct($status)
|
public function __construct($status)
|
||||||
{
|
{
|
||||||
//
|
|
||||||
|
|
||||||
$this->status = $status;
|
$this->status = $status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,16 +8,6 @@
|
|||||||
|
|
||||||
class ModuleScript extends Component
|
class ModuleScript extends Component
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Create a new component instance.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the view / contents that represent the component.
|
* Get the view / contents that represent the component.
|
||||||
*
|
*
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
class Payment extends Component
|
class Payment extends Component
|
||||||
{
|
{
|
||||||
public string|null $payment = '';
|
public ?string $payment = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new component instance.
|
* Create a new component instance.
|
||||||
@ -16,7 +16,6 @@ class Payment extends Component
|
|||||||
*/
|
*/
|
||||||
public function __construct(string|null $payment)
|
public function __construct(string|null $payment)
|
||||||
{
|
{
|
||||||
//
|
|
||||||
$this->payment = $payment;
|
$this->payment = $payment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
class WorkOrderStatus extends Component
|
class WorkOrderStatus extends Component
|
||||||
{
|
{
|
||||||
public string|null $status = null;
|
public ?string $status = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new component instance.
|
* Create a new component instance.
|
||||||
|
Loading…
Reference in New Issue
Block a user