<?php

namespace App\Filament\Resources\HelpArticles;

use App\Filament\Resources\HelpArticles\Pages;
use App\Models\HelpArticle;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Tables\Table;
use UnitEnum;

class HelpArticleResource extends Resource
{
    protected static ?string $model = HelpArticle::class;
    protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-document-text';
    protected static string|UnitEnum|null $navigationGroup = 'Conversion Engine';

    public static function form(Schema $schema): Schema
    {
        return Schemas\HelpArticleForm::configure($schema);
    }

    public static function table(Table $table): Table
    {
        return Tables\HelpArticlesTable::configure($table);
    }

    public static function getPages(): array
    {
        return [
            'index' => Pages\ListHelpArticles::route('/'),
            'create' => Pages\CreateHelpArticle::route('/create'),
            'edit' => Pages\EditHelpArticle::route('/{record}/edit'),
        ];
    }
}
