How to get value of other TextEntry inside RepeatableEntry?
How can I check construction_id value within percent entry ?
RepeatableEntry::make('properties')
->schema([
Grid::make(2)
->schema([
TextEntry::make('construction_id')
->formatStateUsing(fn (string $state): string => (Construction::find($state)?->name ?? 'Stage has been deleted'))
->inlineLabel()->label(false),
TextEntry::make('percent')
->inlineLabel()->label(false),
])
])