TextInput::make('result')
->numeric()
->required()
->live()
->extraInputAttributes(function (Examen $record, Get $get, $state) {
$positivo = false;
$class = $positivo ? 'bg-green-100' : 'bg-red-100';
dump($class); // For debugging
return ['class' => (string) $class];
}, true)
TextInput::make('result')
->numeric()
->required()
->live()
->extraInputAttributes(function (Examen $record, Get $get, $state) {
$positivo = false;
$class = $positivo ? 'bg-green-100' : 'bg-red-100';
dump($class); // For debugging
return ['class' => (string) $class];
}, true)