alliance moon testing

This commit is contained in:
2020-06-22 20:25:20 -05:00
parent 6994cb1e94
commit 405a785b65

View File

@@ -264,18 +264,18 @@ class MoonsController extends Controller
//Get the color correct for the table //Get the color correct for the table
if($moon->rental_type == 'In Alliance' || $moon->rental_type == 'Out of Alliance') { if($moon->rental_type == 'In Alliance' || $moon->rental_type == 'Out of Alliance') {
if($rentalTemp->diffInDays($today) < 3 && $today < $rentalTemp ) { if($rentalTemp->diffInDays($today) < 3 && $today->lessThan($rentalTemp) ) {
$color = 'table-danger'; $color = 'table-danger';
} else if($today > $rentalTemp) { } else if($today->greaterThan($rentalTemp)) {
$color = 'table-primary'; $color = 'table-primary';
} else if($today < $rentalTemp) { } else if($today->lessThan($rentalTemp)) {
$color = 'table-danger'; $color = 'table-danger';
} }
} else if($moon->rental_type == 'Alliance') { }
if($moon->rental_type == 'Alliance') {
$color = 'table-info'; $color = 'table-info';
} else { }
$color = 'table-primary';
}
//Add the data to the html array to be passed to the view //Add the data to the html array to be passed to the view
array_push($table, [ array_push($table, [