<?php $__env->startSection('title', 'Settings - Social login'); ?>

<?php $__env->startSection('content_header', 'Settings <small>social login</small>'); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <section class="col-lg-12">
            <div class="nav-tabs-custom">
                <?php echo $__env->make('admin.settings._partials.tabs', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <div class="tab-content">
                    <div class="tab-pane active">
                        <form class="form-horizontal" method="POST" action="<?php echo e(route('admin.settings.social.login.update')); ?>">
                            <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                            <?php if(count($errors) > 0): ?>
                                <div class="alert alert-danger alert-dismissable">
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                                    <h4><i class="icon fa fa-ban"></i> <strong>Whoops!</strong> There were some problems with your input.</h4>
                                    <ul>
                                        <?php foreach($errors->all() as $error): ?>
                                            <li><?php echo e($error); ?></li>
                                        <?php endforeach; ?>
                                    </ul>
                                </div>
                            <?php endif; ?>
                            <fieldset>
                                <legend>Facebook</legend>
                                <div class="form-group <?php if($errors->has('facebook_enabled')): ?> has-error <?php endif; ?>">
                                    <label for="checkboxSocialLoginFacebookEnabled" class="col-sm-3 control-label">Facebook enabled</label>
                                    <div class="col-sm-9">
                                        <div class="checkbox">
                                            <label>
                                                <input name="facebook_enabled" type="hidden" value="0">
                                                <input name="facebook_enabled" id="checkboxSocialLoginFacebookEnabled" type="checkbox" value="1" <?php if((bool) old('facebook_enabled', app('settings')->get('social.facebook.enabled'))): ?> checked <?php endif; ?>>
                                                Enabled
                                            </label>
                                        </div>
                                        <p class="help-block">Enable or disable login with Facebook.</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('facebook_client_id')): ?> has-error <?php endif; ?>">
                                    <label for="inputFacebookClientID" class="col-sm-3 control-label">Client ID</label>
                                    <div class="col-sm-9">
                                        <input name="facebook_client_id" type="text" class="form-control" id="inputFacebookClientID" value="<?php echo e(old('facebook_client_id', app('settings')->get('services.facebook.client_id'))); ?>">
                                        <p class="help-block">Facebook client ID.</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('facebook_client_secret')): ?> has-error <?php endif; ?>">
                                    <label for="inputFacebookClientSecret" class="col-sm-3 control-label">Client secret</label>
                                    <div class="col-sm-9">
                                        <input name="facebook_client_secret" type="text" class="form-control" id="inputFacebookClientSecret" value="<?php echo e(old('facebook_client_secret', app('settings')->get('services.facebook.client_secret'))); ?>">
                                        <p class="help-block">Facebook client secret.</p>
                                    </div>
                                </div>
                            </fieldset>
                            <fieldset>
                                <legend>Twitter</legend>
                                <div class="form-group <?php if($errors->has('twitter_enabled')): ?> has-error <?php endif; ?>">
                                    <label for="checkboxSocialLoginTwitterEnabled" class="col-sm-3 control-label">Twitter enabled</label>
                                    <div class="col-sm-9">
                                        <div class="checkbox">
                                            <label>
                                                <input name="twitter_enabled" type="hidden" value="0">
                                                <input name="twitter_enabled" id="checkboxSocialLoginTwitterEnabled" type="checkbox" value="1" <?php if((bool) old('twitter_enabled', app('settings')->get('social.twitter.enabled'))): ?> checked <?php endif; ?>>
                                                Enabled
                                            </label>
                                        </div>
                                        <p class="help-block">Enable or disable login with Twitter.</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('twitter_client_id')): ?> has-error <?php endif; ?>">
                                    <label for="inputTwitterClientID" class="col-sm-3 control-label">Client ID</label>
                                    <div class="col-sm-9">
                                        <input name="twitter_client_id" type="text" class="form-control" id="inputTwitterClientID" value="<?php echo e(old('twitter_client_id', app('settings')->get('services.twitter.client_id'))); ?>">
                                        <p class="help-block">Twitter client ID.</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('twitter_client_secret')): ?> has-error <?php endif; ?>">
                                    <label for="inputTwitterClientSecret" class="col-sm-3 control-label">Client secret</label>
                                    <div class="col-sm-9">
                                        <input name="twitter_client_secret" type="text" class="form-control" id="inputTwitterClientSecret" value="<?php echo e(old('twitter_client_secret', app('settings')->get('services.twitter.client_secret'))); ?>">
                                        <p class="help-block">Twitter client secret.</p>
                                    </div>
                                </div>
                            </fieldset>
                            <fieldset>
                                <legend>Google+</legend>
                                <div class="form-group <?php if($errors->has('google_enabled')): ?> has-error <?php endif; ?>">
                                    <label for="checkboxSocialLoginGoogleEnabled" class="col-sm-3 control-label">Google+ enabled</label>
                                    <div class="col-sm-9">
                                        <div class="checkbox">
                                            <label>
                                                <input name="google_enabled" type="hidden" value="0">
                                                <input name="google_enabled" id="checkboxSocialLoginGoogleEnabled" type="checkbox" value="1" <?php if((bool) old('google_enabled', app('settings')->get('social.google.enabled'))): ?> checked <?php endif; ?>>
                                                Enabled
                                            </label>
                                        </div>
                                        <p class="help-block">
                                            Enable or disable login with Google+.<br>
                                            If enabled, add these links to your application redirect URIs:<br>
                                            <strong><?php echo e(route('home')); ?></strong><br>
                                            <strong><?php echo e(route('user.update.social.associate.handle', 'google')); ?></strong><br>
                                            <strong><?php echo e(route('auth.register.provider.callback', 'google')); ?></strong><br>
                                        </p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('google_client_id')): ?> has-error <?php endif; ?>">
                                    <label for="inputGoogleClientID" class="col-sm-3 control-label">Client ID</label>
                                    <div class="col-sm-9">
                                        <input name="google_client_id" type="text" class="form-control" id="inputGoogleClientID" value="<?php echo e(old('google_client_id', app('settings')->get('services.google.client_id'))); ?>">
                                        <p class="help-block">Google+ client ID.</p>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group <?php if($errors->has('google_client_secret')): ?> has-error <?php endif; ?>">
                                    <label for="inputGoogleClientSecret" class="col-sm-3 control-label">Client secret</label>
                                    <div class="col-sm-9">
                                        <input name="google_client_secret" type="text" class="form-control" id="inputGoogleClientSecret" value="<?php echo e(old('google_client_secret', app('settings')->get('services.google.client_secret'))); ?>">
                                        <p class="help-block">Google+ client secret.</p>
                                    </div>
                                </div>
                            </fieldset>
                            <hr>
                            <div class="clearfix">
                                <div class="pull-right">
                                    <button type="submit" class="btn btn-success">Save</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>