mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 06:06:51 +01:00 
			
		
		
		
	 1900c04b71
			
		
	
	
		1900c04b71
		
			
		
	
	
	
	
		
			
			Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com> Co-authored-by: Boy132 <Boy132@users.noreply.github.com> Co-authored-by: Lance Pioch <git@lance.sh>
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			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
 | |
|             ->components([
 | |
|                 Section::make(trans('admin/dashboard.sections.intro-help.heading'))
 | |
|                     ->icon('tabler-question-mark')
 | |
|                     ->iconColor('info')
 | |
|                     ->collapsible()
 | |
|                     ->persistCollapsed()
 | |
|                     ->schema([
 | |
|                         TextEntry::make('info')
 | |
|                             ->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),
 | |
|                     ]),
 | |
|             ]);
 | |
|     }
 | |
| }
 |