<?php

namespace App\Filament\Resources\Categories\Schemas;

use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;

class CategoryForm
{
    public static function configure(Schema $schema): Schema
    {
        return $schema
            ->components([
                TextInput::make('name')
                    ->label('Ady')
                    ->required(),
                Select::make('icon')
                    ->label('Ikonkasy')
                    ->options([
                        'cake' => 'Tort (Cake)',
                        'bakery_dining' => 'Çörek (Bakery)',
                        'local_cafe' => 'Kofe (Cafe)',
                        'icecream' => 'Doňdurma (Ice Cream)',
                        'cookie' => 'Köke (Cookie)',
                        'emoji_food_beverage' => 'Içgi (Beverage)',
                        'restaurant' => 'Restoran (Restaurant)',
                        'restaurant_menu' => 'Menýu (Menu)',
                        'local_dining' => 'Nahar (Dining)',
                        'celebration' => 'Baýramçylyk (Celebration)',
                        'star' => 'Ýyldyz (Star)',
                        'favorite' => 'Halanýan (Favorite)',
                        'redeem' => 'Sowgat (Gift)',
                        'local_mall' => 'Söwda (Shopping)',
                    ])
                    ->searchable(),
                TextInput::make('order')
                    ->label('Tertibi')
                    ->required()
                    ->numeric()
                    ->default(0),
            ]);
    }
}
