2025-06-23 07:33:34 -04:00

41 lines
1.2 KiB
PHP

<?php
namespace App\Filament\Admin\Widgets;
use Exception;
use Filament\Actions\Action;
use Filament\Infolists\Components\TextEntry;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
class HelpWidget extends FormWidget
{
protected static ?int $sort = 4;
/**
* @throws Exception
*/
public function form(Schema $schema): Schema
{
return $schema
->schema([
Section::make(trans('admin/dashboard.sections.intro-help.heading'))
->icon('tabler-question-mark')
->iconColor('info')
->collapsible()
->persistCollapsed()
->schema([
TextEntry::make('iNeedAName')
->hiddenLabel()
->state(trans('admin/dashboard.sections.intro-help.content')),
])
->headerActions([
Action::make('docs')
->label(trans('admin/dashboard.sections.intro-help.button_docs'))
->icon('tabler-speedboat')
->url('https://pelican.dev/docs', true),
]),
]);
}
}