<?php $__env->startSection('meta-content'); ?>
<title><?php echo Lang::get('words.admin_alt').' - '.Lang::get('words.settings'); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="row">
	<div class="col-xs-12">
		<ol class="breadcrumb">
			<li><a href="<?php echo URL::to('admin'); ?>"><?php echo Lang::get('words.admin'); ?></a></li>
			<li class="active"><?php echo Lang::get('words.settings'); ?></li>
		</ol>
	</div>
</div>
	<form method="POST" action="<?php echo URL::to('user/admin/settings'); ?>" id="media-form" accept-charset="UTF-8" file="1" enctype="multipart/form-data">
		<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
		<div class="row">
			<div class="col-lg-4">
				<div class="form-group">
					<label for="website_name" class="control-label"><?php echo Lang::get('words.website-name'); ?>:</label>
					<input type="text" class="form-control" name="website_name" value="<?php echo $settings->website_name; ?>">
				</div>
				<div class="form-group">
					<label for="website_title" class="control-label"><?php echo Lang::get('words.website-title'); ?>:</label>
					<input type="text" class="form-control" name="website_title" value="<?php echo $settings->website_title; ?>">
				</div>
				<div class="form-group">
					<label for="website_description" class="control-label"><?php echo Lang::get('words.website-description'); ?>:</label>
					<input type="text" class="form-control" name="website_description" value="<?php echo $settings->website_description; ?>">
				</div>
				<div class="form-group">
					<label for="logo_image" class="control-label"><?php echo Lang::get('words.website-logo'); ?>:</label>
					<img class="img-responsive" src="<?php echo URL::asset('assets/images/logo.png'); ?>">
					<span class="btn btn-danger btn-file btn-block">
						<?php echo Lang::get('words.select-image'); ?>

						<input class="btn" type="file" name="logo_image">
					</span>
				</div>
				<div class="form-group">
					<label for="website_description" class="control-label"><?php echo Lang::get('words.recaptcha-key'); ?>:</label>
					<input type="text" class="form-control" name="recaptcha_site_key" value="<?php echo $settings->recaptcha_site_key; ?>">
				</div>
				<div class="form-group">
					<label for="website_description" class="control-label"><?php echo Lang::get('words.recaptcha-secret-key'); ?>:</label>
					<input type="text" class="form-control" name="recaptcha_secret_key" value="<?php echo $settings->recaptcha_secret_key; ?>">
				</div>
				<div class="form-group">
					<label for="analytics" class="control-label"><?php echo Lang::get('words.google-analytics'); ?>:</label>
					<textarea class="form-control" rows="5" name="analytics"><?php echo $settings->analytics; ?></textarea>
				</div>
			</div>
			<div class="col-lg-4">
				<div class="form-group">
					<label for="website_name" class="control-label"><?php echo Lang::get('words.facebook-page'); ?>:</label>
					<input type="text" class="form-control" name="fb_page_id" value="<?php echo $settings->fb_page_id; ?>">
				</div>
				<div class="form-group">
					<label for="website_name" class="control-label"><?php echo Lang::get('words.facebook-key'); ?>:</label>
					<input type="text" class="form-control" name="fb_key" value="<?php echo $settings->fb_key; ?>">
				</div>
				<div class="form-group">
					<label for="website_name" class="control-label"><?php echo Lang::get('words.facebook-secret-key'); ?>:</label>
					<input type="text" class="form-control" name="fb_secret_key" value="<?php echo $settings->fb_secret_key; ?>">
				</div>
				<div class="form-group">
					<label for="website_name" class="control-label"><?php echo Lang::get('words.twitter-page'); ?>:</label>
					<input type="text" class="form-control" name="twitter_page_id" value="<?php echo $settings->twitter_page_id; ?>">
				</div>
				<div class="form-group">
					<label for="website_name" class="control-label"><?php echo Lang::get('words.twitter-key'); ?>:</label>
					<input type="text" class="form-control" name="twitter_key" value="<?php echo $settings->twitter_key; ?>">
				</div>
				<div class="form-group">
					<label for="website_name" class="control-label"><?php echo Lang::get('words.twitter-secret-key'); ?>:</label>
					<input type="text" class="form-control" name="twitter_secret_key" value="<?php echo $settings->twitter_secret_key; ?>">
				</div>
				<div class="form-group">
					<label for="website_name" class="control-label"><?php echo Lang::get('words.google-page'); ?>:</label>
					<input type="text" class="form-control" name="google_page_id" value="<?php echo $settings->google_page_id; ?>">
				</div>
				<div class="form-group">
					<label for="website_name" class="control-label"><?php echo Lang::get('words.google-key'); ?>:</label>
					<input type="text" class="form-control" name="google_key" value="<?php echo $settings->google_key; ?>">
				</div>
				<div class="form-group">
					<label for="website_name" class="control-label"><?php echo Lang::get('words.google-secret-key'); ?>:</label>
					<input type="text" class="form-control" name="google_secret_key" value="<?php echo $settings->google_secret_key; ?>">
				</div>
			</div>
			<div class="col-lg-4">
				<div class="form-group">
					<label for="vk_auth" class="control-label"><?php echo Lang::get('words.vk_auth'); ?>:</label>
					<input type="text" class="form-control" name="vk_auth" value="<?php echo $settings->vk_auth; ?>">
				</div>
				<div class="form-group">
					<label class="control-label">Accent Color:</label>
					<?php echo Form::text('theme_color', $settings->theme_color, array('class'=>'form-control theme-color')); ?>

				</div>
				<div class="form-group">
					<div class="funkyradio">
	            		<div class="funkyradio-success">
				            <input type="checkbox" name="auth_download" <?php if($settings->auth_download): ?> checked <?php endif; ?> id="radio1" />
				            <label for="radio1"><?php echo Lang::get('words.auth-download-msg'); ?></label>
				        </div>
		            </div>
				</div>
				<div class="form-group">
					<div class="funkyradio">
	            		<div class="funkyradio-success">
				            <input type="checkbox" name="downloadable" <?php if($settings->downloadable): ?> checked <?php endif; ?> id="radio2" />
				            <label for="radio2"><?php echo Lang::get('words.downloadable-msg'); ?></label>
				        </div>
		            </div>
				</div>
				<div class="form-group">
					<label for="box_ad" class="control-label"><?php echo Lang::get('words.ad-box'); ?>:</label>
					<textarea class="form-control" rows="5" name="box_ad"><?php echo $settings->box_ad; ?></textarea>
				</div>
				<div class="form-group">
					<label for="banner_ad" class="control-label"><?php echo Lang::get('words.banner-ad-msg'); ?>:</label>
					<textarea class="form-control" rows="5" name="banner_ad"><?php echo $settings->banner_ad; ?></textarea>
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
		<br>
		<button type="submit" class="btn btn-lg btn-block btn-primary"><?php echo Lang::get('words.update-settings'); ?></button>
	</form>
<br>
<br>
<script type="text/javascript">
	$(document).ready(function(){
			$(document).on('focus', '.theme-color', function(){
					$(this).colorpicker();
			});
	        
		});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.index', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>