public function form(Form $form): Form
{
return $form
->schema([
Repeater::make('categorySteps')
->label($this->categoryApplicationName . ' Adımı')
->schema([
TextInput::make('step_title')
->label('Adım Başlığı')
->disabled()
->required(),
FileUpload::make('file_name')
->label('Dosya Yükleyin')
->disk('public')
->directory('category-application-steps')
->acceptedFileTypes(['application/pdf'])
->visible(fn(mixed $value): bool => dd($value))
->required(),
TextInput::make('file_description')
->label('Dosya Açıklaması')
->required(),
Checkbox::make('is_approved')
->label('Dikkatlice Okudum ve Onaylıyorum')
->accepted()
])
->deletable(false)
->addable(false)
->reorderable()
->columns(1),
])
->statePath('data')
->columns(1);
}
public function form(Form $form): Form
{
return $form
->schema([
Repeater::make('categorySteps')
->label($this->categoryApplicationName . ' Adımı')
->schema([
TextInput::make('step_title')
->label('Adım Başlığı')
->disabled()
->required(),
FileUpload::make('file_name')
->label('Dosya Yükleyin')
->disk('public')
->directory('category-application-steps')
->acceptedFileTypes(['application/pdf'])
->visible(fn(mixed $value): bool => dd($value))
->required(),
TextInput::make('file_description')
->label('Dosya Açıklaması')
->required(),
Checkbox::make('is_approved')
->label('Dikkatlice Okudum ve Onaylıyorum')
->accepted()
])
->deletable(false)
->addable(false)
->reorderable()
->columns(1),
])
->statePath('data')
->columns(1);
}