24 lines
438 B
PHP
24 lines
438 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Modals;
|
|
|
|
use App\Services\HomeStatus;
|
|
use LivewireUI\Modal\ModalComponent;
|
|
|
|
class Warnings extends ModalComponent
|
|
{
|
|
public static function modalMaxWidth(): string
|
|
{
|
|
return 'lg';
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
$home = app(HomeStatus::class);
|
|
|
|
return view('livewire.modals.warnings', [
|
|
'warnings' => $home->warnings($home->devices()),
|
|
]);
|
|
}
|
|
}
|