Look, it's that in a BD the classes that are used to style a nav a color are already set. Good but I'm going to show you everything for photos.
In that image you see the names of the classes depending on which navigation bar it is. and the following css apply:
.blue-seadog {
background-color: #00AEEF;
}
.teal {
background-color: #009688 !important;
}
.amber.darken-1 {
background-color: #ffb300 !important;
}
.green {
background-color: #4CAF50 !important;
}
.red {
background-color: #F44336 !important;
}
And everything up there very well, what I need is the following: get those color codes from a cakephp driver, since I need them for the following:
$worksheet->getStyle('H'.$i)->getFill()->setFillType(\PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID)->getStartColor()->setARGB('FFFF0000');
In that line I give a color to an excel cell, and depending on whether the data is of a certain state, it must have the same color as the navigation bar of that state.
For example when we are in the asset view then the navigation bar is green, and in the excel the active users should be green.