39 lines
852 B
PHP
39 lines
852 B
PHP
<?php
|
|
|
|
namespace App\Filament\Pages;
|
|
|
|
use Filament\Pages\Page;
|
|
use App\Models\Plugin;
|
|
|
|
class Plugins extends Page
|
|
{
|
|
protected static ?string $navigationIcon = 'heroicon-o-puzzle-piece';
|
|
|
|
protected static ?string $navigationGroup = 'Plugins';
|
|
|
|
protected static ?string $navigationLabel = 'Plugin List';
|
|
|
|
protected static ?string $title = 'Plugins';
|
|
|
|
protected static string $view = 'filament.pages.plugins';
|
|
|
|
protected static ?string $slug = 'list-plugins';
|
|
|
|
public $plugins;
|
|
|
|
public function mount(): void
|
|
{
|
|
$this->plugins = Plugin::getAllPlugins();
|
|
}
|
|
|
|
public static function getNavigationGroup(): ?string
|
|
{
|
|
return __('filament.navigation.groups.plugins');
|
|
}
|
|
|
|
public static function getNavigationLabel(): string
|
|
{
|
|
return __('filament.navigation.plugin_list');
|
|
}
|
|
}
|