<?php

namespace App\Filament\Resources\Blogs\Schemas;

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

class BlogForm
{
    public static function configure(Schema $schema): Schema
    {
        return $schema
            ->components([
                TextInput::make('title')
                    ->label('Blog Title (ব্লগের শিরোনাম)')
                    ->required()
                    ->maxLength(255)
                    ->columnSpan('full'),

                // এখানে description এর বদলে content করা হয়েছে
                RichEditor::make('content')
                    ->label('Description (বিস্তারিত)')
                    ->required()
                    ->columnSpan('full')
                    ->toolbarButtons([
                        'bold',
                        'italic',
                        'underline',
                        'strike',
                        'link',
                        'h2',
                        'h3',
                        'bulletList',
                        'orderedList',
                        'blockquote',
                        'undo',
                        'redo',
                    ]),
            ]);
    }
}