<?php

namespace App\Filament\Resources\SmsSettings;

use App\Filament\Resources\SmsSettings\Pages;
use App\Filament\Resources\SmsSettings\Schemas\SmsSettingSchema;
use App\Filament\Resources\SmsSettings\Tables\SmsSettingTable;
use App\Models\SmsSetting;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;
use UnitEnum;

class SmsSettingResource extends Resource
{
    protected static ?string $model = SmsSetting::class;

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

    protected static ?string $navigationLabel = 'SMS Settings';

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

    protected static ?int $navigationSort = 10;

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

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

    public static function getPages(): array
    {
        return [
            'index' => Pages\ListSmsSettings::route('/'),
            'create' => Pages\CreateSmsSetting::route('/create'),
            'edit' => Pages\EditSmsSetting::route('/{record}/edit'),
        ];
    }
}
