moons admin controller

This commit is contained in:
2019-05-31 23:20:29 -05:00
parent 9fac05d49e
commit a8143e235d
2 changed files with 7 additions and 3 deletions

View File

@@ -158,9 +158,6 @@ class MoonMailerCommand extends Command
//For each of the moons, build the System Planet and Moon.
foreach($moons as $moon) {
$temp = 'Moon: ' . $moon->System . ' - ' . $moon->Planet . ' - ' . $moon->Moon;
//$temp .= ' Planet: ' . $moon->Planet;
//$temp .= ' Moon: ' . $moon->Moon;
//Push the new string onto the array list
array_push($list, $temp);
}

View File

@@ -46,6 +46,7 @@ class MoonsAdminController extends Controller
public function storeUpdateMoon(Request $request) {
$moonCalc = new MoonCalc;
$lookup = new LookupHelper;
$paid = false;
$this->validate($request, [
'system' => 'required',
@@ -68,6 +69,12 @@ class MoonsAdminController extends Controller
$contact = $lookup->CharacterNameToId($request->contact);
}
if($request->paid == 'Yes') {
$paid = 'Yes';
} else {
$paid = 'No';
}
if(isset($request->Paid_Until)) {
$paidUntil = $request->Paid_Until;
} else {