modified moon display table

This commit is contained in:
2019-02-28 23:45:32 -06:00
parent bd572cc7dc
commit 1a299e3dac
3 changed files with 27 additions and 2 deletions

View File

@@ -58,7 +58,9 @@ class MoonsController extends Controller
$moonprice = $price['outofalliance'];
}
if($today > $rentalTemp) {
if($rentalTemp->diffInDays($today) < 3 ) {
$color = 'table-warning';
} else if( $today > $rentalTemp) {
$color = 'table-primary';
} else {
$color = 'table-danger';