<?php

namespace App\Filament\Resources\ResellerPackages;

use App\Filament\Resources\ResellerPackages\Pages\CreateResellerPackage;
use App\Filament\Resources\ResellerPackages\Pages\EditResellerPackage;
use App\Filament\Resources\ResellerPackages\Pages\ListResellerPackages;
use App\Filament\Resources\ResellerPackages\Schemas\ResellerPackageForm;
use App\Filament\Resources\ResellerPackages\Tables\ResellerPackagesTable;
use App\Models\ResellerPackage;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;

class ResellerPackageResource extends Resource
{
    protected static ?string $model = ResellerPackage::class;

    protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-gift';
    protected static string|\UnitEnum|null $navigationGroup = 'Reseller System';
    protected static ?string $navigationLabel = 'Membership Packages';
    protected static ?string $modelLabel = 'Membership Package';
    protected static ?string $pluralModelLabel = 'Membership Packages';
    protected static ?int $navigationSort = 3;

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

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

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

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