netgescon-day0/app/Filament/Pages/Contabilita/RateEmesseArchivio.php

35 lines
905 B
PHP

<?php
namespace App\Filament\Pages\Contabilita;
use App\Models\User;
use BackedEnum;
use Filament\Pages\Page;
use Illuminate\Support\Facades\Auth;
use UnitEnum;
class RateEmesseArchivio extends Page
{
protected static ?string $navigationLabel = 'Rate emesse';
protected static ?string $title = 'Rate emesse';
protected static BackedEnum|string|null $navigationIcon = 'heroicon-o-receipt-percent';
protected static UnitEnum|string|null $navigationGroup = 'Stabile';
protected static ?int $navigationSort = 45;
protected static ?string $slug = 'contabilita/rate-emesse';
protected string $view = 'filament.pages.contabilita.rate-emesse-archivio';
public static function canAccess(): bool
{
$user = Auth::user();
return $user instanceof User
&& $user->hasAnyRole(['super-admin', 'admin', 'amministratore', 'collaboratore']);
}
}