update moon modification
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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']) }}
|
||||
|
||||
Reference in New Issue
Block a user