wip
This commit is contained in:
1 parent
a1ba7adbbe
commit
0543823a4f
18 files changed
+3257
-363
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use App\Models\Comparatore;
|
||||
use BackedEnum;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Pages\Page;
|
||||
@@ -24,6 +25,8 @@ class Monitor extends Page
|
||||
|
||||
protected static ?string $title = '';
|
||||
|
||||
public $data = [];
|
||||
|
||||
// protected array $extraBodyAttributes = ['class' => 'border border-red-500'];
|
||||
|
||||
public function getMaxContentWidth(): Width
|
||||
@@ -31,6 +34,16 @@ class Monitor extends Page
|
||||
return Width::Full;
|
||||
}
|
||||
|
||||
public function mount()
|
||||
{
|
||||
$tmp = Comparatore::limit(100)->get();
|
||||
$data = [];
|
||||
foreach ($tmp as $value) {
|
||||
$data[] = json_decode($value['fdata'], 1);
|
||||
}
|
||||
$this->data = json_encode($data);
|
||||
}
|
||||
|
||||
// protected static string|UnitEnum|null $navigationGroup = 'Administration';
|
||||
|
||||
// public function onboardingAction(): Action
|
||||
|
||||
Reference in new issue
Block a user