update moon modification
This commit is contained in:
@@ -223,7 +223,6 @@ class MoonsAdminController extends Controller
|
|||||||
//Validate our request from the html form
|
//Validate our request from the html form
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'spmn' => 'required',
|
'spmn' => 'required',
|
||||||
//'renter' => 'required',
|
|
||||||
'date' => 'required',
|
'date' => 'required',
|
||||||
'contact' => 'required',
|
'contact' => 'required',
|
||||||
]);
|
]);
|
||||||
@@ -262,12 +261,13 @@ class MoonsAdminController extends Controller
|
|||||||
} else {
|
} else {
|
||||||
$paidUntil = null;
|
$paidUntil = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($request->rental_corp == null) {
|
//Create the rnetal ticker if the corp is in Warped Intentions, otherwise just display the alliance ticker
|
||||||
$renter = $corp->name;
|
if($allianceId == 99004116) {
|
||||||
|
$renter = $corp->ticker;
|
||||||
} else {
|
} else {
|
||||||
$renter = $request->rental_corp;
|
$renter = $alliance->ticker;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Create the date
|
//Create the date
|
||||||
$date = new Carbon($request->date . '00:00:01');
|
$date = new Carbon($request->date . '00:00:01');
|
||||||
|
|||||||
@@ -7,10 +7,6 @@
|
|||||||
{{ Form::label('spmn', 'Moon') }}
|
{{ Form::label('spmn', 'Moon') }}
|
||||||
{{ Form::select('spmn', $spmn, null, ['class' => 'form-control', 'placeholder' => 'Select Moon...']) }}
|
{{ Form::select('spmn', $spmn, null, ['class' => 'form-control', 'placeholder' => 'Select Moon...']) }}
|
||||||
</div>
|
</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">
|
<div class="form-group col-md-6">
|
||||||
{{ Form::label('contact', 'Contact') }}
|
{{ Form::label('contact', 'Contact') }}
|
||||||
{{ Form::text('contact', '', ['class' => 'form-control', 'placeholder' => 'Character']) }}
|
{{ Form::text('contact', '', ['class' => 'form-control', 'placeholder' => 'Character']) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user