mirror of
https://github.com/nihonbuzz/nihonbuzz-academy.git
synced 2026-01-26 05:25:37 +07:00
32 lines
933 B
PHP
32 lines
933 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Vocabularies\Schemas;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Forms\Components\Textarea;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class VocabularyForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('word')
|
|
->required(),
|
|
TextInput::make('reading'),
|
|
TextInput::make('romaji'),
|
|
TextInput::make('meaning_en'),
|
|
TextInput::make('meaning_id'),
|
|
TextInput::make('level'),
|
|
TextInput::make('audio_url')
|
|
->url(),
|
|
TextInput::make('type'),
|
|
Textarea::make('stroke_order_svg')
|
|
->columnSpanFull(),
|
|
Textarea::make('example_sentences')
|
|
->columnSpanFull(),
|
|
]);
|
|
}
|
|
}
|