37 lines
877 B
PHP
37 lines
877 B
PHP
<?php
|
|
|
|
namespace App\Filament\Pages\Supporto;
|
|
|
|
use BackedEnum;
|
|
use Filament\Pages\Page;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use UnitEnum;
|
|
|
|
class Modifiche extends Page
|
|
{
|
|
protected static ?string $navigationLabel = 'Modifiche';
|
|
|
|
protected static ?string $title = 'Modifiche e Changelog';
|
|
|
|
protected static BackedEnum|string|null $navigationIcon = 'heroicon-o-document-text';
|
|
|
|
protected static UnitEnum|string|null $navigationGroup = 'Supporto';
|
|
|
|
protected static ?int $navigationSort = 30;
|
|
|
|
protected static ?string $slug = 'supporto/modifiche';
|
|
|
|
protected string $view = 'filament.pages.supporto.modifiche';
|
|
|
|
public static function canAccess(): bool
|
|
{
|
|
$user = Auth::user();
|
|
if (! $user) {
|
|
return false;
|
|
}
|
|
|
|
// Pagina informativa: accessibile a chi accede al pannello.
|
|
return true;
|
|
}
|
|
}
|