<?php

declare(strict_types=1);

namespace App\Filament\Resources\BankCards;

use App\Filament\Resources\BankCards\Pages\ListBankCards;
use App\Filament\Resources\BankCards\Tables\BankCardsTable;
use App\Models\BankCard;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Tables\Table;
use UnitEnum;

class BankCardResource extends Resource
{
    protected static ?string $model = BankCard::class;

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

    protected static ?string $navigationLabel = 'کارت‌های بانکی';

    protected static ?string $modelLabel = 'کارت بانکی';

    protected static ?string $pluralModelLabel = 'کارت‌های بانکی';

    protected static string|null|UnitEnum $navigationGroup = 'مالی';

    protected static ?int $navigationSort = 5;

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

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