<?php

declare(strict_types=1);

namespace App\Filament\Resources\Stylevars;

use App\Filament\Resources\Stylevars\Pages\CreateStylevar;
use App\Filament\Resources\Stylevars\Pages\EditStylevar;
use App\Filament\Resources\Stylevars\Pages\ListStylevars;
use App\Filament\Resources\Stylevars\Schemas\StylevarForm;
use App\Filament\Resources\Stylevars\Tables\StylevarsTable;
use App\Models\Stylevar;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;
use UnitEnum;
use App\Filament\Concerns\HasTranslatedLabels;

class StylevarResource extends Resource
{
    use HasTranslatedLabels;

    protected static ?string $model = Stylevar::class;

    
    

    protected static function navKey(): string
    {
        return 'stylevars';
    }

    protected static function modelKey(): string
    {
        return 'stylevar';
    }

    protected static function groupKey(): string
    {
        return 'content';
    }

    protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedDocumentText;

    public static function form(Schema $schema): Schema
    {
        return StylevarForm::configure($schema);
    }

    public static function table(Table $table): Table
    {
        return StylevarsTable::configure($table);
    }

    public static function getPages(): array
    {
        return [
            'index' => ListStylevars::route('/'),
            'create' => CreateStylevar::route('/create'),
            'edit' => EditStylevar::route('/{record}/edit'),
        ];
    }
}
