mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-01 00:26:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			823 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			823 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Filament\Admin\Pages;
 | |
| 
 | |
| use App\Services\Helpers\SoftwareVersionService;
 | |
| use Filament\Pages\Dashboard as BaseDashboard;
 | |
| 
 | |
| class Dashboard extends BaseDashboard
 | |
| {
 | |
|     protected static ?string $navigationIcon = 'tabler-layout-dashboard';
 | |
| 
 | |
|     private SoftwareVersionService $softwareVersionService;
 | |
| 
 | |
|     public function mount(SoftwareVersionService $softwareVersionService): void
 | |
|     {
 | |
|         $this->softwareVersionService = $softwareVersionService;
 | |
|     }
 | |
| 
 | |
|     public function getColumns(): int
 | |
|     {
 | |
|         return 1;
 | |
|     }
 | |
| 
 | |
|     public function getHeading(): string
 | |
|     {
 | |
|         return trans('admin/dashboard.heading');
 | |
|     }
 | |
| 
 | |
|     public function getSubheading(): string
 | |
|     {
 | |
|         return trans('admin/dashboard.version', ['version' => $this->softwareVersionService->currentPanelVersion()]);
 | |
|     }
 | |
| }
 | 
