2lenet/crudit-bundle
Symfony bundle to rapidly build configurable CRUD back offices with SB Admin layout. Provides list views with pagination, sorting, actions, exports and batch ops, plus datasources, filters, menus, workflows, maps, markdown and Twig helpers.
Crudit allows you to add a class to <tr> tags in lists.
To do so, go to the entity corresponding to your list and add a new getter:
public function getCssClass(): string
{
return 'status-' . $this->status;
}
If you refresh your list and got to your code inspector, you will see that a class has been added to <tr> tags:

All you have to do next is go to the CSS of your project and apply a background color to this new class:
.status-invoiced {
background-color: darkseagreen;
}
.status-cancel {
background-color: indianred;
}

:warning: With Bootstrap ^5.2, you need to override the css variable to transparent.
$table-bg: transparent;
How can I help you explore Laravel packages today?