structure

This commit is contained in:
2018-11-22 01:05:34 -06:00
parent df86e0b60f
commit e41445b598
2 changed files with 4 additions and 2 deletions

View File

@@ -29,6 +29,8 @@ class RegisterStructureController extends Controller
'structure_type' => 'required',
]);
$tax = floatval($request->tax);
$structure = new CorpStructure();
$structure->character_id = Auth::user()->character_id;
$structure->corporation_id = $request->corporation_id;
@@ -36,7 +38,7 @@ class RegisterStructureController extends Controller
$structure->region = $request->region;
$structure->system = $request->system;
$structure->structure_name = $request->structure_name;
$structure->tax = $request->tax;
$structure->tax = $tax;
$structure->structure_type = $request->structure_type;
$structure->save();

View File

@@ -15,7 +15,7 @@
{{ Form::label('structure_name', 'Structure Name') }}
{{ Form::text('structure_name', '', ['class' => 'form-control']) }}
{{ Form::label('tax', 'Tax') }}
{{ Form::number('tax', '', ['class' => 'form-control']) }}
{{ Form::text('tax', '', ['class' => 'form-control']) }}
{{ Form::label('structure_type', 'Structure Type') }}
{{ Form::select('structure_type', ['Refinery' => 'Refinery', 'Citadel' => 'Citadel'], null, ['class' => 'form-control']) }}
</div>