moon testing

This commit is contained in:
2020-06-22 23:51:06 -05:00
parent fc5261a645
commit 1f1c001fde

View File

@@ -257,7 +257,7 @@ class MoonsController extends Controller
$color = 'table-primary';
}
} else if($moon->rental_type == 'Alliance') {
$rentalTemp = $today->endOfMonth();
$rentalTemp = Carbon::now()->endOfMonth();
$rentalEnd = $rentalTemp->format('m-d');
$color = 'table-info';
} else {
@@ -291,12 +291,9 @@ class MoonsController extends Controller
'Worth' => number_format($moon->moon_worth, 0, ".", ","),
'RentalEnd' => $rentalEnd,
'RowColor' => $color,
'Rental_Type' => $moon->rental_type,
]);
}
dd($table);
//Pass the data to the view
return view('moons.user.moon')->with('table', $table);
}