alliance moon testing
This commit is contained in:
@@ -264,17 +264,17 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user