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