<?php

declare(strict_types=1);

namespace App\Filament\Resources\Ratings\Schemas;

use Filament\Forms\Components\Select;
use Filament\Forms\Components\Textarea;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;

class RatingForm
{
    public static function configure(Schema $schema): Schema
    {
        return $schema->components([
            Section::make('امتیاز')
                ->schema([
                    Select::make('score')
                        ->label('امتیاز')
                        ->options([1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5])
                        ->required(),
                    Textarea::make('comment')->label('توضیح')->rows(3),
                ])
                ->columns(1),
        ]);
    }
}
