diff --git a/app/Http/Controllers/StructureController.php b/app/Http/Controllers/StructureController.php index ff92564cb..65710f7d3 100644 --- a/app/Http/Controllers/StructureController.php +++ b/app/Http/Controllers/StructureController.php @@ -71,14 +71,13 @@ class StructureController extends Controller $temp = $esi->invoke('get', '/universe/structures/{structure_id}/', [ 'structure_id' => $structures[$j]->context_id, ]); - var_dump($temp); - $name[$i] = $temp->name; + } catch(RequestFailedException $e) { $name[$i] = ' '; } - } - dd($name); + $name[$i] = $temp->name; + } //Cycle through all of the structures and get the revenue for($j = 0; $j < sizeof($structures); $j++) { @@ -91,8 +90,6 @@ class StructureController extends Controller } $totalTaxes = array_push($totalTaxes, $tempTaxes); } - - dd($totalTaxes); return view('structures.taxhistory')->with('totalTaxes', $totalTaxes) ->with('months', $months); diff --git a/resources/views/scopes/select.blade.php b/resources/views/scopes/select.blade.php index 91da1f454..254b8dd7f 100644 --- a/resources/views/scopes/select.blade.php +++ b/resources/views/scopes/select.blade.php @@ -11,6 +11,7 @@ $readStructures = false; $structureMarkets = false; $corpAssets = false; + $universeStructures = false; ?>

Select Scopes for ESI

@@ -113,6 +114,14 @@
@endif @endforeach + @foreach($scopes as $scope) + @if($scope->scope == 'esi-universe.read_structures.v1') +
+ {{ Form::label('scopes[]', 'Corporation Assets') }} + {{ Form::checkbox('scopes[]', 'esi-universe.read_structures.v1', 'true') }} +
+ @endif + @endforeach @if($publicData == false)
@@ -174,6 +183,12 @@ {{ Form::checkbox('scopes[]', 'esi-assets.read_corporation_assets.v1') }}
@endif + @if($universeStructures == false) +
+ {{ Form::label('scopes[]', 'Universe Structures') }} + {{ Form::checkbox('scopes[]', 'esi-universe.read_structures.v1') }} +
+ @endif {{ Form::submit('Submit', ['class' => 'btn btn-primary']) }} {!! Form::close() !!}