TextInput::make('checkServicePIN')
->label('Service-PIN')->password()->autocomplete(false)->columns(1)
->suffixAction(
Action::make('checkServicePIN')
->icon('heroicon-m-check-circle')
->action(function (?Model $record, $state, Set $set) {
$state == $record->service_pin ? $record->lastPINentry = true : $record->lastPINentry = false;
$record->save();
})
),
Placeholder::make('lastPINentry')
->content(fn (Order $record): string => $record->lastPINentry == 1 ? new HtmlString('right') : new HtmlString('wrong')),
TextInput::make('checkServicePIN')
->label('Service-PIN')->password()->autocomplete(false)->columns(1)
->suffixAction(
Action::make('checkServicePIN')
->icon('heroicon-m-check-circle')
->action(function (?Model $record, $state, Set $set) {
$state == $record->service_pin ? $record->lastPINentry = true : $record->lastPINentry = false;
$record->save();
})
),
Placeholder::make('lastPINentry')
->content(fn (Order $record): string => $record->lastPINentry == 1 ? new HtmlString('right') : new HtmlString('wrong')),