<?php

namespace App\Filament\Resources\Master\SubClassifications;

use App\Filament\Resources\Master\SubClassifications\Pages\ManageSubClassifications;
use App\Filament\Resources\Master\SubClassifications\Schemas\SubClassificationForm;
use App\Filament\Resources\Master\SubClassifications\Tables\SubClassificationTable;
use App\Models\SubClassification;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;
use UnitEnum;

class SubClassificationResource extends Resource
{
    protected static ?string $model = SubClassification::class;

    protected static string|UnitEnum|null $navigationGroup = 'Master';

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

    protected static ?string $navigationLabel = 'Subklasifikasi';

    protected static ?int $navigationSort = 2;

    protected static ?string $slug = 'master/sub-classifications';

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

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

    public static function getPages(): array
    {
        return [
            'index' => ManageSubClassifications::route('/'),
        ];
    }
}
