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

@@ -193,7 +193,9 @@ class MoonsAdminController extends Controller
$price = $moonCalc->SpatialMoonsOnlyGoo($moon->FirstOre, $moon->FirstQuantity, $moon->SecondOre, $moon->SecondQuantity,
$moon->ThirdOre, $moon->ThirdQuantity, $moon->FourthOre, $moon->FourthQuantity);
if($today > $rentalTemp) {
if($rentalTemp->diffInDays($today) < 3 ) {
$color = 'table-warning';
} else if( $today > $rentalTemp) {
$color = 'table-primary';
} else {
$color = 'table-danger';