<?php

namespace App\Filament\Resources\TrialExtensions;

use App\Filament\Resources\TrialExtensions\Pages\CreateTrialExtension;
use App\Filament\Resources\TrialExtensions\Pages\EditTrialExtension;
use App\Filament\Resources\TrialExtensions\Pages\ListTrialExtensions;
use App\Filament\Resources\TrialExtensions\Schemas\TrialExtensionForm;
use App\Filament\Resources\TrialExtensions\Tables\TrialExtensionsTable;
use App\Models\Subscription;
use App\Models\TrialExtension;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;
use UnitEnum;

class TrialExtensionResource extends Resource
{
    protected static ?string $model = TrialExtension::class;

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

    protected static ?string $navigationLabel = 'Trial Extensions';

    protected static ?string $modelLabel = 'Trial Extension';

    protected static ?string $pluralModelLabel = 'Trial Extensions';

    protected static string|UnitEnum|null $navigationGroup = 'Payment Management';

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

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

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

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