<link rel="stylesheet" href="{{ IncludeAsset('assets/lib/bootstrap-switch/css/bootstrap-switch.min.css') }}">
<link rel="stylesheet" href="{{ IncludeAsset('assets/lib/validationengine/css/validationEngine.jquery.css') }}">
<link rel="stylesheet" href="{{ IncludeAsset('assets/lib/chosen/css/chosen.min.css') }}">

<!--BEGIN INPUT TEXT FIELDS-->
<div class="row">
<div class="col-lg-12">
<form class="form-horizontal" id="config-edit" enctype="multipart/form-data" method="post">
<div class="box dark">
<header>
	<div class="icons">
		<i class="fa fa-edit"></i>
	</div>
	<h5>
		{{ @lang_site_configuration }} <small>| {{ @lang_last_updated }} {{ @time_last_updated }}</small>
	</h5>
</header>


<!-- form section -->
<div class="row">
	<div class="col-lg-1">
		&nbsp;
	</div>
	<div class="col-lg-10">

		<div class="box dark">
			<header>
				<h5>
					{{ @lang_site_settings }} <small>| {{ @lang_general_mysimpleads_admin_console_settings }}</small>
				</h5>
				<!-- .toolbar -->
				<div class="toolbar">
					<ul class="nav">
						<li>
							<a class="minimize-box" data-toggle="collapse" href="#div-1">
								<i class="fa fa-chevron-up"></i>
							</a>
						</li>
					</ul>
				</div><!-- /.toolbar -->
			</header>

			<div id="div-1" class="accordion-body collapse in body">

				<div class="form-group">
					<label for="site_template" class="tips control-label col-lg-3" title="{{ @lang_select_a_template__which_specifies_the_layout_of_the_admin_console }}.">Site Template</label>
					<div class="col-lg-5">
						<select id="site_template" name="site_template" data-placeholder="{{ @lang_select_a_template }}" class="form-control">
							<repeat group="{{ @templates }}" value="{{ @template }}">
								<option {{ @template.imagesrc | raw }} {{ @template.description | raw }} value="{{ @template.optionvalue }}" <check if="{{ ((!empty(@template.optionvalue)) && (@template.optionvalue == @config->site_template)) }}">selected</check>>{{ @template.optiontext }}</option>
							</repeat>
						</select>
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="site_theme" class="tips control-label col-lg-3" title="{{ @lang_select_a_theme__which_specifies_the_color_design_of_the_template }}.">{{ @lang_template_theme }}</label>
					<div class="col-lg-5">
						<select id="site_theme" name="site_theme" data-placeholder="{{ @lang_select_a_theme }}" class="form-control">
							<repeat group="{{ @themes }}" value="{{ @theme }}">
								<option {{ @theme.imageSrc | raw }} {{ @theme.description | raw }} value="{{ @theme.value }}" <check if="{{ ((!empty(@theme.value)) && (@theme.value == @config->site_theme)) }}">selected</check>>{{ @theme.text }}</option>
							</repeat>
						</select>
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="site_logo_url" class="tips control-label col-lg-3" title="{{ @lang_url_of_an_image_to_use_instead_of_the_mysimpleads_logo__dimensions_should_be_around }} 143 x 44.">{{ @lang_logo_url }}</label>
					<div class="col-lg-8">
						<input class="form-control" placeholder="http://" type="url" id="site_logo_url" name="site_logo_url" value="{{ @config->site_logo_url }}" maxlength="256" />
					</div>
				</div><!-- /.form-group -->

			</div>
		</div>
	</div>
</div>
<!-- /form section -->


<!-- form section -->
<div class="row">
	<div class="col-lg-1">
		&nbsp;
	</div>
	<div class="col-lg-10">

		<div class="box dark">
			<header>
				<h5>
					{{ @lang_sales_settings }} <small>| {{ @lang_sales_settings_and_accounts }}</small>
				</h5>
				<!-- .toolbar -->
				<div class="toolbar">
					<ul class="nav">
						<li>
							<a class="minimize-box" data-toggle="collapse" href="#div-2">
								<i class="fa fa-chevron-up"></i>
							</a>
						</li>
					</ul>
				</div><!-- /.toolbar -->
			</header>

			<div id="div-2" class="accordion-body collapse in body">

				<div class="form-group">
					<label for="sales_test" class="tips control-label col-lg-3"
					       title="{{ @lang_select_test_to_use_test_sandbox_accounts__and_live_to_use_production_accounts }}.">{{ @lang_sales_account_mode }}</label>
					<div class="col-lg-5">
						<input type="hidden" name="sales_test" value="0">
						<input id="sales_test" name="sales_test" type="checkbox" value="1" <check if="{{ @config->sales_test }}">checked</check>
						class="switch-small"
						data-on="danger" data-off="success"
						data-on-label="{{ @lang_test }}" data-off-label="{{ @lang_live }}">
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label class="control-label col-lg-3" title=""></label>
					<div class="col-lg-8">
						<small class="text-muted">PayPal - {{ @lang_questions_on_how_to_get_your_paypal_information__try_this }} <a href="http://www.clippersoft.net/docs">{{ @lang_paypal_faq }}</a>.</small>
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="paypal_api_username" class="tips control-label col-lg-3" title="{{ @lang_enter_your }} {{ @lang_paypal_api_username }}. ">{{ @lang_paypal_api_username }}</label>
					<div class="col-lg-5">
						<input class="form-control" type="text" id="paypal_api_username" name="paypal_api_username" value="{{ @config->paypal_api_username }}" maxlength="128" />
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="paypal_api_password" class="tips control-label col-lg-3" title="{{ @lang_enter_your }} {{ @lang_paypal_api_password }}. ">{{ @lang_paypal_api_password }}</label>
					<div class="col-lg-5">
						<input class="form-control" type="text" id="paypal_api_password" name="paypal_api_password" value="{{ @config->paypal_api_password }}" maxlength="128" />
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="paypal_api_signature" class="tips control-label col-lg-3" title="{{ @lang_enter_your }} {{ @lang_paypal_api_signature }}. ">{{ @lang_paypal_api_signature }}</label>
					<div class="col-lg-6">
						<input class="form-control" type="text" id="paypal_api_signature" name="paypal_api_signature" value="{{ @config->paypal_api_signature }}" maxlength="128" />
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label class="control-label col-lg-3" title=""></label>
					<div class="col-lg-8">
						<small class="text-muted">Stripe</small>
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="stripe_publishable_key" class="tips control-label col-lg-3" title="{{ @lang_enter_your }} {{ @lang_stripe_publishable_key }}. ">{{ @lang_stripe_publishable_key }}</label>
					<div class="col-lg-6">
						<input class="form-control" type="text" id="stripe_publishable_key" name="stripe_publishable_key" value="{{ @config->stripe_publishable_key }}" maxlength="128" />
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="stripe_secret_key" class="tips control-label col-lg-3" title="{{ @lang_enter_your }} {{ @lang_stripe_secret_key }}. ">{{ @lang_stripe_secret_key }}</label>
					<div class="col-lg-6">
						<input class="form-control" type="text" id="stripe_secret_key" name="stripe_secret_key" value="{{ @config->stripe_secret_key }}" maxlength="128" />
					</div>
				</div><!-- /.form-group -->

			</div>
		</div>
	</div>
</div>
<!-- /form section -->


<!-- form section -->
<div class="row">
	<div class="col-lg-1">
		&nbsp;
	</div>
	<div class="col-lg-10">

		<div class="box dark">
			<header>
				<h5>
					{{ @lang_mail_settings }} <small>| {{ @lang_mail_server_settings }}</small>
				</h5>
				<!-- .toolbar -->
				<div class="toolbar">
					<ul class="nav">
						<li>
							<a class="minimize-box" data-toggle="collapse" href="#div-3">
								<i class="fa fa-chevron-up"></i>
							</a>
						</li>
					</ul>
				</div><!-- /.toolbar -->
			</header>

			<div id="div-3" class="accordion-body collapse in body">

				<div class="form-group">
					<label for="mail_from_email" class="tips control-label col-lg-3" title="{{ @lang_enter_the_email_address_your_emails_will_come_from }}.">{{ @lang_mail_from_email }}</label>
					<div class="col-lg-5">
						<input class="form-control" placeholder="name@example.com" type="email" id="mail_from_email" name="mail_from_email" value="{{ @config->mail_from_email }}" maxlength="128" />
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="mail_from_name" class="tips control-label col-lg-3" title="{{ @lang_enter_the_name_your_emails_will_come_from }}.">{{ @lang_mail_from_name }}</label>
					<div class="col-lg-5">
						<input class="form-control"  type="text" id="mail_from_name" name="mail_from_name" value="{{ @config->mail_from_name }}" maxlength="128" />
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="mail_type" class="tips control-label col-lg-3"
					       title="{{ @lang_select_to_use_the_mail_server_specified_in_your_php_settings__or_smtp_to_use_a_custom_smtp_server }}.">{{ @lang_mail_type }}</label>
					<div class="col-lg-5">
						<select id="mail_type" name="mail_type">
							<option value="1" <check if="{{ @config->mail_type == 1}}">selected</check>>{{ @lang_php_mail }}</option>
							<option value="2" <check if="{{ @config->mail_type == 2}}">selected</check>>SMTP</option>
						</select>
					</div>
				</div><!-- /.form-group -->

				<div id="smtp_settings">

					<div class="form-group">
						<label for="mail_smtp_host" class="tips control-label col-lg-3" title="{{ @lang_your_smtp_host_address__such_as }} smtp.gmail.com.">{{ @lang_smtp_host }}</label>
						<div class="col-lg-5">
							<input class="form-control" type="text" placeholder="smtp.example.com" id="mail_smtp_host" name="mail_smtp_host" value="{{ @config->mail_smtp_host }}" maxlength="128" />
						</div>
					</div><!-- /.form-group -->

					<div class="form-group">
						<label for="mail_smtp_password" class="tips control-label col-lg-3" title="{{ @lang_enter_your_smtp_server_port_number }}. ">{{ @lang_smtp_server_port }}</label>
						<div class="col-lg-2">
							<input class="form-control" type="number" id="mail_smtp_port" name="mail_smtp_port" value="{{ @config->mail_smtp_port }}" maxlength="6" />
						</div>
					</div><!-- /.form-group -->

					<div class="form-group">
						<label for="mail_smtp_username" class="tips control-label col-lg-3" title="{{ @lang_enter_your }} {{ @lang_smtp_username }}. ">{{ @lang_smtp_username }}</label>
						<div class="col-lg-5">
							<input class="form-control" type="text" id="mail_smtp_username" name="mail_smtp_username" value="{{ @config->mail_smtp_username }}" maxlength="128" />
						</div>
					</div><!-- /.form-group -->

					<div class="form-group">
						<label for="mail_smtp_password" class="tips control-label col-lg-3" title="{{ @lang_enter_your }} {{ @lang_smtp_password }}. ">{{ @lang_smtp_password }}</label>
						<div class="col-lg-5">
							<input class="form-control" type="text" id="mail_smtp_password" name="mail_smtp_password" value="{{ @config->mail_smtp_password }}" maxlength="128" />
						</div>
					</div><!-- /.form-group -->

					<div class="form-group">
						<label for="mail_smtp_secure" class="tips control-label col-lg-3"
						       title="{{ @lang_select_the_connection_security_method_for_your_smtp_server }}.">{{ @lang_smtp_security_type }}</label>
						<div class="col-lg-3">
							<select id="mail_smtp_secure" name="mail_smtp_secure">
								<option value="TLS" <check if="{{ @config->mail_smtp_secure == 'TLS'}}">selected</check>>TLS</option>
								<option value="SSL" <check if="{{ @config->mail_smtp_secure == 'SSL'}}">selected</check>>SSL</option>
							</select>
						</div>
					</div><!-- /.form-group -->

				</div>

			</div>
		</div>
	</div>
</div>
<!-- /form section -->


<!-- form section -->
<div class="row">
	<div class="col-lg-1">
		&nbsp;
	</div>
	<div class="col-lg-10">

		<div class="box dark">
			<header>
				<h5>
					{{ @lang_site_maintenance }} <small>| {{ @lang_maintenance_commands }}</small>
				</h5>
				<!-- .toolbar -->
				<div class="toolbar">
					<ul class="nav">
						<li>
							<a class="minimize-box" data-toggle="collapse" href="#div-4">
								<i class="fa fa-chevron-up"></i>
							</a>
						</li>
					</ul>
				</div><!-- /.toolbar -->
			</header>

			<div id="div-4" class="accordion-body collapse in body">

				<div class="form-group">
					<label for="geoip_update" class="tips control-label col-lg-3" title="{{ @lang_check_if_there_are_any_updates_for_the_geoip_databases }}.">{{ @lang_geoip_database_update }}</label>
					<div class="col-lg-5">
						<a id="geoip_update" href="#" class="btn btn-sm btn-primary">{{ @lang_check_for_geoip_database_update }}</a>
						<div id="geoip_update_result"></div>
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="db_backup" class="tips control-label col-lg-3" title="{{ @lang_backup_the_mysimpleads_database_to_the_local_temp_directory }}.">{{ @lang_backup_the_database }}</label>
					<div class="col-lg-5">
						<a id="db_backup" href="#" class="btn btn-sm btn-primary">{{ @lang_backup_the_database }}</a>
						<div id="db_backup_result"></div>
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="clean_cache" class="tips control-label col-lg-3" title="{{ @lang_clear_out_all_the_caching_files__should_not_normally_need_to_do_this__but_won_t_hurt_anything_ }}">{{ @lang_clean_the_cache }}</label>
					<div class="col-lg-5">
						<a id="clean_cache" href="#" class="btn btn-sm btn-primary">{{ @lang_clean_the_cache }}</a>
						<div id="clean_cache_result"></div>
					</div>
				</div><!-- /.form-group -->

				<div class="form-group">
					<label for="mysa_update" class="tips control-label col-lg-3" title="{{ @lang_check_for_a_new_version_of_mysimpleads }}.">{{ @lang_mysimpleads_update }}</label>
					<div class="col-lg-5">
						<a id="mysa_update" href="#" class="btn btn-sm btn-primary">{{ @lang_check_for_mysimpleads_update }}</a>
						<div id="mysa_update_result"></div>
					</div>
				</div><!-- /.form-group -->

			</div>
		</div>
	</div>
</div>
<!-- /form section -->


<div class="row">
	<div class="col-lg-1">
		&nbsp;
	</div>
	<div class="col-lg-10">
		<br />
		<button type="submit" class="btn btn-success" id="save">{{ @lang_save }}</button>&nbsp;
		<a href="index.php" class="btn btn-sm btn-metis-5">{{ @lang_cancel }}</a>
		<div><br /></div>
	</div>
</div>

</div>
</form>
</div>
</div>