<?php

namespace App\Filament\Resources\TrainingFeedbacks;

use App\Filament\Resources\TrainingFeedbacks\Pages\CreateTrainingFeedback;
use App\Filament\Resources\TrainingFeedbacks\Pages\EditTrainingFeedback;
use App\Filament\Resources\TrainingFeedbacks\Pages\ListTrainingFeedbacks;
use App\Filament\Resources\TrainingFeedbacks\Schemas\TrainingFeedbackForm;
use App\Filament\Resources\TrainingFeedbacks\Tables\TrainingFeedbacksTable;
use App\Models\TrainingFeedback;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;

class TrainingFeedbackResource extends Resource
{
    protected static ?string $model = TrainingFeedback::class;

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

    protected static ?string $navigationLabel = 'Training Feedback';
    protected static ?string $modelLabel = 'Training Feedback';
    protected static ?string $pluralModelLabel = 'Training Feedback';

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

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

    public static function getRelations(): array
    {
        return [
            //
        ];
    }

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