update moon modification

This commit is contained in:
2020-01-03 18:21:36 -06:00
parent 4d54225434
commit d8a7ae1748
2 changed files with 6 additions and 10 deletions

View File

@@ -223,7 +223,6 @@ class MoonsAdminController extends Controller
//Validate our request from the html form
$this->validate($request, [
'spmn' => 'required',
//'renter' => 'required',
'date' => 'required',
'contact' => 'required',
]);
@@ -262,12 +261,13 @@ class MoonsAdminController extends Controller
} else {
$paidUntil = null;
}
if($request->rental_corp == null) {
$renter = $corp->name;
//Create the rnetal ticker if the corp is in Warped Intentions, otherwise just display the alliance ticker
if($allianceId == 99004116) {
$renter = $corp->ticker;
} else {
$renter = $request->rental_corp;
}
$renter = $alliance->ticker;
}
//Create the date
$date = new Carbon($request->date . '00:00:01');

View File

@@ -7,10 +7,6 @@
{{ Form::label('spmn', 'Moon') }}
{{ Form::select('spmn', $spmn, null, ['class' => 'form-control', 'placeholder' => 'Select Moon...']) }}
</div>
<div class="form-group col-md-6">
{{ Form::label('rental_corp', 'Corp / Alliance Ticker') }}
{{ Form::text('rental_corp', '', ['class' => 'form-control', 'placeholder' => 'Renter']) }}
</div>
<div class="form-group col-md-6">
{{ Form::label('contact', 'Contact') }}
{{ Form::text('contact', '', ['class' => 'form-control', 'placeholder' => 'Character']) }}