I am using the following codes to change the state in the table:
[attachment=1371:duvida-1-grocery.PNG]
[attachment=1372:duvida-2-grocery.PNG]
```
if ($priority == 0) {
return '<span class="pedido_realizado" style="color:#60676a;"></span>';
}
if ($checkout_Y == -0001 && $checkin_Y == -0001) {
return '<span class="aguardando_checkin" style="color:#60676a;"></span>';
}
if($checkout_Y != -0001 && $checkin_Y != -0001){
return '<span class="completo_in_out" style="color:#60676a;"></span>';
}
```
```
$(document).ready(function () {
$('.completo_in_out').parent().parent().addClass( "success").find('a').addClass( "hidden" );
$('.pedido_realizado').parent().parent().addClass( "info" ).find('a').addClass( "hidden" );
$('.aguardando_checkin').parent().parent().addClass( "warning" );
});
```