moons admin controller
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user