color issues

This commit is contained in:
2020-06-22 21:05:42 -05:00
parent f8a77b7c29
commit 545a691387

View File

@@ -224,7 +224,6 @@ class MoonsController extends Controller
*/ */
public function displayRentalMoons() { public function displayRentalMoons() {
//Declare variables //Declare variables
$rentalEnd = null;
$lastMonth = Carbon::now()->subMonth(); $lastMonth = Carbon::now()->subMonth();
$today = Carbon::now(); $today = Carbon::now();
$table = array(); $table = array();
@@ -247,6 +246,7 @@ class MoonsController extends Controller
//Check if someone is currently renting the moon //Check if someone is currently renting the moon
if($moon->rental_type == 'In Alliance' || $moon->rental_type == 'Out of Alliance') { if($moon->rental_type == 'In Alliance' || $moon->rental_type == 'Out of Alliance') {
$rentalTemp = new Carbon($moon->rental_until); $rentalTemp = new Carbon($moon->rental_until);
dd($rentalTemp);
$rentalEnd = $rentalTemp->format('m-d'); $rentalEnd = $rentalTemp->format('m-d');
//Setup the correct color for the table //Setup the correct color for the table