<?php

namespace App\Filament\Resources\ModerationCases;

use App\Filament\Resources\ModerationCases\Pages\EditModerationCase;
use App\Filament\Resources\ModerationCases\Pages\ListModerationCases;
use App\Filament\Resources\ModerationCases\Pages\ViewModerationCase;
use App\Filament\Resources\ModerationCases\Schemas\ModerationCaseForm;
use App\Filament\Resources\ModerationCases\Schemas\ModerationCaseInfolist;
use App\Filament\Resources\ModerationCases\Tables\ModerationCasesTable;
use App\Models\ModerationCase;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;

class ModerationCaseResource extends Resource
{
    protected static ?string $model = ModerationCase::class;

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

    public static function getNavigationLabel(): string
    {
        return __('admin.moderation_cases.navigation.label');
    }

    public static function getModelLabel(): string
    {
        return __('admin.moderation_cases.navigation.singular');
    }

    public static function getPluralModelLabel(): string
    {
        return __('admin.moderation_cases.navigation.plural');
    }

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

    public static function infolist(Schema $schema): Schema
    {
        return ModerationCaseInfolist::configure($schema);
    }

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

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

    public static function getPages(): array
    {
        return [
            'index' => ListModerationCases::route('/'),
            'view' => ViewModerationCase::route('/{record}'),
            'edit' => EditModerationCase::route('/{record}/edit'),
        ];
    }
}
