<?php

namespace App\Filament\Resources\ResellerCommunityGroups;

use App\Filament\Resources\ResellerCommunityGroups\Pages\CreateResellerCommunityGroup;
use App\Filament\Resources\ResellerCommunityGroups\Pages\EditResellerCommunityGroup;
use App\Filament\Resources\ResellerCommunityGroups\Pages\ListResellerCommunityGroups;
use App\Filament\Resources\ResellerCommunityGroups\Schemas\ResellerCommunityGroupForm;
use App\Filament\Resources\ResellerCommunityGroups\Tables\ResellerCommunityGroupsTable;
use App\Models\ResellerCommunityGroup;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;

class ResellerCommunityGroupResource extends Resource
{
    protected static ?string $model = ResellerCommunityGroup::class;

    protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-users';

    protected static string|\UnitEnum|null $navigationGroup = 'Reseller System';

    protected static ?string $navigationLabel = 'Community Groups';

    protected static ?int $navigationSort = 6;

    protected static ?string $recordTitleAttribute = 'name';

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

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

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

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