@extends('layouts.b4'); @section('content')

Select Scopes for ESI

{!! Form::open(['action' => 'Auth\EsiScopeController@redirectToProvider', 'method' => 'POST']) !!} @foreach($scopes as $scope) @if($scope->scope == 'publicData')
{{ Form::label('scopes[]', 'Public Data') }} {{ Form::checkbox('scopes[]', 'publicData', 'true') }}
@break @endif @endforeach @foreach($scopes as $scope) @if($scope->scope == 'esi-location.read_location.v1')
{{ Form::label('scopes[]', 'Read Location') }} {{ Form::checkbox('scopes[]', 'esi-location.read_location.v1', 'true') }}
@break @endif @endforeach @foreach($scopes as $scope) @if($scope->scope == 'esi-mail.send_mail.v1')
{{ Form::label('scopes[]', 'Write Mail') }} {{ Form::checkbox('scopes[]', 'esi-mail.send_mail.v1', 'true') }}
@break @endif @endforeach @foreach($scopes as $scope) @if($scope->scope == 'esi-mail.read_mail.v1')
{{ Form::label('scopes[]', 'Read Mail') }} {{ Form::checkbox('scopes[]', 'esi-mail.read_mail.v1', 'true')}}
@break @endif @endforeach @foreach($scopes as $scope) @if($scope->scope == 'esi-wallet.read_corporation_wallets.v1')
{{ Form::label('scopes[]', 'Corporation Wallets') }} {{ Form::checkbox('scopes[]', 'esi-wallet.read_corporation_wallets.v1', 'true') }}
@break @endif @endforeach @foreach($scopes as $scope) @if($scope->scope == 'esi-corporations.read_structures.v1')
{{ Form::label('scopes[]', 'Read Structures') }} {{ Form::checkbox('scopes[]', 'esi-corporations.read_structures.v1', 'true') }}
@break @endif @endforeach @foreach($scopes as $scope) @if($scope->scope == 'esi-markets.structure_markets.v1')
{{ Form::label('scopes[]', 'Structure Markets') }} {{ Form::checkbox('scopes[]', 'esi-markets.structure_markets.v1', 'true') }}
@break @endif @endforeach @foreach($scopes as $scope) @if($scope->scope == 'esi-assets.read_corporation_assets.v1')
{{ Form::label('scopes[]', 'Corporation Assets') }} {{ Form::checkbox('scopes[]', 'esi-assets.read_corporation_assets.v1', 'true') }}
@endif @endforeach @foreach($scopes as $scope) @if($scope->scope == 'esi-universe.read_structures.v1')
{{ Form::label('scopes[]', 'Universe Structures') }} {{ Form::checkbox('scopes[]', 'esi-universe.read_structures.v1', 'true') }}
@endif @endforeach @foreach($scopes as $scope) @if($scope->scope == 'esi-contracts.read_corporation_contracts.v1')
{{ Form::label('scopes[]', 'Corporate Contracts') }} {{ Form::checkbox('scopes[]', 'esi-contracts.read_corporation_contracts.v1') }}
@endif @endforeach @if($publicData == false)
{{ Form::label('scopes[]', 'Public Data') }} {{ Form::checkbox('scopes[]', 'publicData') }}
@endif @if($readLocation == false)
{{ Form::label('scopes[]', 'Read Location') }} {{ Form::checkbox('scopes[]', 'esi-location.read_location.v1') }}
@endif @if($writeMail == false)
{{ Form::label('scopes[]', 'Write Mail') }} {{ Form::checkbox('scopes[]', 'esi-mail.send_mail.v1') }}
@endif @if($readMail == false)
{{ Form::label('scopes[]', 'Read Mail') }} {{ Form::checkbox('scopes[]', 'esi-mail.read_mail.v1')}}
@endif @if($readCorpWallets == false)
{{ Form::label('scopes[]', 'Corporation Wallets') }} {{ Form::checkbox('scopes[]', 'esi-wallet.read_corporation_wallets.v1') }}
@endif @if($readStructures == false)
{{ Form::label('scopes[]', 'Read Structures') }} {{ Form::checkbox('scopes[]', 'esi-corporations.read_structures.v1') }}
@endif @if($structureMarkets == false)
{{ Form::label('scopes[]', 'Structure Markets') }} {{ Form::checkbox('scopes[]', 'esi-markets.structure_markets.v1') }}
@endif @if($corpAssets == false)
{{ Form::label('scopes[]', 'Corporation Assets') }} {{ 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 @if($corpContracts == false)
{{ Form::label('scopes[]', 'Corporate Contracts') }} {{ Form::checkbox('scopes[]', 'esi-contracts.read_corporation_contracts.v1') }}
@endif {{ Form::submit('Submit', ['class' => 'btn btn-primary']) }} {!! Form::close() !!}
@endsection