fix: Forms\Get/Set->Schemas Get/Set on Central panel + rename Super-admini to Utilizatori
This commit is contained in:
@@ -18,15 +18,15 @@ class SuperAdminResource extends Resource
|
||||
{
|
||||
protected static ?string $model = SuperAdmin::class;
|
||||
|
||||
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-shield-check';
|
||||
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-users';
|
||||
|
||||
protected static ?string $navigationLabel = 'Super-admini';
|
||||
protected static ?string $navigationLabel = 'Utilizatori';
|
||||
|
||||
protected static ?string $modelLabel = 'super-admin';
|
||||
protected static ?string $modelLabel = 'utilizator';
|
||||
|
||||
protected static ?string $pluralModelLabel = 'super-admini';
|
||||
protected static ?string $pluralModelLabel = 'utilizatori';
|
||||
|
||||
protected static string|\UnitEnum|null $navigationGroup = 'Acces';
|
||||
protected static string|\UnitEnum|null $navigationGroup = null;
|
||||
|
||||
protected static ?int $navigationSort = 50;
|
||||
|
||||
@@ -74,7 +74,14 @@ class SuperAdminResource extends Resource
|
||||
Tables\Columns\TextColumn::make('email')->searchable()->copyable(),
|
||||
Tables\Columns\TextColumn::make('role')
|
||||
->badge()
|
||||
->formatStateUsing(fn ($s) => array_keys(SuperAdmin::ROLES, SuperAdmin::ROLES[$s] ?? $s)[0] ?? $s)
|
||||
->formatStateUsing(fn ($s) => match ($s) {
|
||||
'owner' => 'Proprietar',
|
||||
'admin' => 'Administrator',
|
||||
'support' => 'Suport',
|
||||
'sales' => 'Vânzări',
|
||||
'finance' => 'Financiar',
|
||||
default => $s,
|
||||
})
|
||||
->color(fn ($s) => match ($s) {
|
||||
'owner' => 'danger',
|
||||
'admin' => 'warning',
|
||||
|
||||
Reference in New Issue
Block a user