<?php $setting = get_setting(); ?>
<div class="row">
	<div class="col-md-7">
		<div class="box box-primary">
			<div class="box-header with-border">
				<h3 class="box-title"><?= !empty(lang('home_setting'))?lang('home_setting'):"Home Setting";?></h3>
				<div class="box-tools pull-right">
					<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
					<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
				</div>
			</div>
			<!-- /.box-header -->
			<form action="<?= base_url('admin/dashboard/add_home_setting') ?>" method="post" class="skill_form" enctype= "multipart/form-data">
				<div class="box-body">

					<!-- csrf token -->
					<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>">

					<div class="row">
						<div class="col-md-12">
							<h4><?= !empty(lang('home_setting'))?lang('home_setting'):"Home Setting";?></h4>
						</div>
						<div class="form-group col-lg-3 col-md-4 col-sm-4 col-xs-6">
							<label for=""><?= !empty(lang('search'))?lang('search'):"Search";?></label>
							<div class="">
								<input type="checkbox" name="" class="setting_option" data-type="is_search" data-value="<?= $setting['is_search'];?>" <?= isset($setting['is_search']) && $setting['is_search']==1?'checked':'';?> value="1"  data-toggle="toggle" data-on="<i class='fa fa-check'></i> <?= !empty(lang('on'))?lang('on'):"On";?>" data-off="<i class='fa fa-pause'></i> <?= !empty(lang('off'))?lang('off'):"Off";?>">
								
							</div>
						</div>

						<div class="form-group col-lg-3 col-md-4 col-sm-4 col-xs-6">
							<label for=""><?= !empty(lang('themes'))?lang('themes'):"Themes";?></label>
							<div class="">
								<input type="checkbox" name="" class="setting_option" data-type="is_themes" data-value="<?= $setting['is_themes'];?>" <?= isset($setting['is_themes']) && $setting['is_themes']==1?'checked':'';?> value="1"  data-toggle="toggle" data-on="<i class='fa fa-check'></i> <?= !empty(lang('on'))?lang('on'):"On";?>" data-off="<i class='fa fa-pause'></i> <?= !empty(lang('off'))?lang('off'):"Off";?>">
								
							</div>
						</div>


						<div class="form-group col-lg-3 col-md-4 col-sm-4 col-xs-6">
							<label for=""><?= !empty(lang('teams'))?lang('teams'):"Teams";?></label>
							<div class="">
								<input type="checkbox" name="" class="setting_option" data-type="is_teams" data-value="<?= $setting['is_teams'];?>" <?= isset($setting['is_teams']) && $setting['is_teams']==1?'checked':'';?> value="1"  data-toggle="toggle" data-on="<i class='fa fa-check'></i> <?= !empty(lang('on'))?lang('on'):"On";?>" data-off="<i class='fa fa-pause'></i> <?= !empty(lang('off'))?lang('off'):"Off";?>">
								
							</div>
						</div>

						<div class="form-group col-lg-3  col-md-4 col-sm-4 col-xs-6">
							<label for=""><?= !empty(lang('faq'))?lang('faq'):"FAQ";?></label>
							<div class="">
								<input type="checkbox" name="" class="setting_option" data-type="is_faq" data-value="<?= $setting['is_faq'];?>" <?= isset($setting['is_faq']) && $setting['is_faq']==1?'checked':'';?> value="1"  data-toggle="toggle" data-on="<i class='fa fa-check'></i> <?= !empty(lang('on'))?lang('on'):"On";?>" data-off="<i class='fa fa-pause'></i> <?= !empty(lang('off'))?lang('off'):"Off";?>">
								
							</div>
						</div>

						<div class="form-group col-lg-3 col-md-4 col-sm-4 col-xs-6">
							<label for=""><?= !empty(lang('services'))?lang('services'):"Services";?></label>
							<div class="">
								<input type="checkbox" name="" class="setting_option" data-type="is_services" data-value="<?= $setting['is_services'];?>" <?= isset($setting['is_services']) && $setting['is_services']==1?'checked':'';?> value="1"  data-toggle="toggle" data-on="<i class='fa fa-check'></i> <?= !empty(lang('on'))?lang('on'):"On";?>" data-off="<i class='fa fa-pause'></i> <?= !empty(lang('off'))?lang('off'):"Off";?>">
								
							</div>
						</div>
						<div class="form-group col-lg-3  col-md-4 col-sm-4 col-xs-6">
							<label for=""><?= !empty(lang('users'))?lang('users'):"Users";?></label>
							<div class="">
								<input type="checkbox" name="" class="setting_option" data-type="is_user" data-value="<?= $setting['is_user'];?>" <?= isset($setting['is_user']) && $setting['is_user']==1?'checked':'';?> value="1"  data-toggle="toggle" data-on="<i class='fa fa-check'></i> <?= !empty(lang('on'))?lang('on'):"On";?>" data-off="<i class='fa fa-pause'></i> <?= !empty(lang('off'))?lang('off'):"Off";?>">
								
							</div>
						</div>

						<div class="form-group col-lg-3  col-md-4 col-sm-4 col-xs-6">
							<label for=""><?= !empty(lang('review'))?lang('review'):"Review";?></label>
							<div class="">
								<input type="checkbox" name="" class="setting_option" data-type="is_review" data-value="<?= $setting['is_review'];?>" <?= isset($setting['is_review']) && $setting['is_review']==1?'checked':'';?> value="1"  data-toggle="toggle" data-on="<i class='fa fa-check'></i> <?= !empty(lang('on'))?lang('on'):"On";?>" data-off="<i class='fa fa-pause'></i> <?= !empty(lang('off'))?lang('off'):"Off";?>">
								
							</div>
						</div>

						<div class="form-group col-lg-3  col-md-4 col-sm-4 col-xs-6">
							<label for=""><?= !empty(lang('contacts'))?lang('contacts'):"contacts";?></label>
							<div class="">
								<input type="checkbox" name="" class="setting_option" data-type="is_contact" data-value="<?= $setting['is_contact'];?>" <?= isset($setting['is_contact']) && $setting['is_contact']==1?'checked':'';?> value="1"  data-toggle="toggle" data-on="<i class='fa fa-check'></i> <?= !empty(lang('on'))?lang('on'):"On";?>" data-off="<i class='fa fa-pause'></i> <?= !empty(lang('off'))?lang('off'):"Off";?>">
								
							</div>
						</div>

						<div class="form-group col-lg-3  col-md-4 col-sm-4 col-xs-6">
							<label for=""><?= !empty(lang('user_demo'))?lang('user_demo'):"user_demo";?></label>
							<div class="">
								<input type="checkbox" name="" class="setting_option" data-type="is_user_demo" data-value="<?= $setting['is_user_demo'];?>" <?= isset($setting['is_user_demo']) && $setting['is_user_demo']==1?'checked':'';?> value="1"  data-toggle="toggle" data-on="<i class='fa fa-check'></i> <?= !empty(lang('on'))?lang('on'):"On";?>" data-off="<i class='fa fa-pause'></i> <?= !empty(lang('off'))?lang('off'):"Off";?>">
								
							</div>
						</div>


						<div class="form-group col-lg-3  col-md-4 col-sm-4 col-xs-6">
							<label for=""><?= !empty(lang('vcard'))?lang('vcard'):"vcard";?></label>
							<div class="">
								<input type="checkbox" name="" class="setting_option" data-type="is_vcard_theme" data-value="<?= $setting['is_vcard_theme'];?>" <?= isset($setting['is_vcard_theme']) && $setting['is_vcard_theme']==1?'checked':'';?> value="1"  data-toggle="toggle" data-on="<i class='fa fa-check'></i> <?= !empty(lang('on'))?lang('on'):"On";?>" data-off="<i class='fa fa-pause'></i> <?= !empty(lang('off'))?lang('off'):"Off";?>">
								
							</div>
						</div>



					</div>

					<div class="row">
						<div class="form-group col-md-6">
					      	<div class="input-group">
				                <span class="input-group-addon" title="Facebook"><i class="fa fa-facebook"></i></span>
				                <input type="text" class="form-control" name="facebook" autocomplete="off" value="<?= isset($data['facebook']) && !empty($data['facebook'])?$data['facebook']:"";?>">
			              </div>
					    </div>

					    <div class="form-group col-md-6">
					      	<div class="input-group">
				                <span class="input-group-addon" title="Whatsapp"><i class="fa fa-whatsapp"></i></span>
				                <input type="text" class="form-control" name="whatsapp" autocomplete="off" value="<?= isset($data['whatsapp']) && !empty($data['whatsapp'])?$data['whatsapp']:"";?>">
			              </div>
					    </div>

					</div>

					<div class="row">
						<div class="form-group col-md-6">
					      	<div class="input-group">
				                <span class="input-group-addon" title="Linkedin"><i class="fa fa-linkedin-square"></i></span>
				                <input type="text" class="form-control" name="linkedin" autocomplete="off" value="<?= isset($data['linkedin']) && !empty($data['linkedin'])?$data['linkedin']:"";?>">
			              </div>
					    </div>

					    <div class="form-group col-md-6">
					    	<div class="input-group">
					    		<span class="input-group-addon" title="Instagram"><i class="fa fa-instagram"></i></span>
					    		<input type="text" class="form-control" name="instagram" autocomplete="off" value="<?= isset($data['instagram']) && !empty($data['instagram'])?$data['instagram']:"";?>">
					    	</div>
					    </div> 
					</div>
				    <input type="hidden" name="id" value="<?= isset($data['id']) && $data['id']!=0?$data['id']:0 ?>">
				</div><!-- /.box-body -->
				<div class="box-footer">
		          	<div class="pull-right">
		          		<button type="submit" name="register" class="btn btn-primary btn-block btn-flat"><?= !empty(lang('submit'))?lang('submit'):"submit";?></button>
		          	</div>
				</div>
			</form>
		</div>

		<div class="box box-primary">
			<div class="box-header with-border">
				<h3 class="box-title"><?= !empty(lang('home_banner'))?lang('home_banner'):"Home Banner";?></h3>
				<div class="box-tools pull-right">
					<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
					<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
				</div>
			</div>
			<!-- /.box-header -->
			<form action="<?= base_url('admin/dashboard/add_home_banner/home') ?>" method="post" class="" enctype= "multipart/form-data">
				<div class="box-body">

					<!-- csrf token -->
					<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>">
					

					<div class="row">
						<div class="form-group col-md-12">
					      	<label for="heading"><?= !empty(lang('home_banner'))?lang('home_banner'):"home banner";?> <small><?= lang('size'); ?> : 2000x700px</small></label>
					        <div class="logo" style="height: 300px; width: 100%; border-radius: 0;">
								<img src="<?= !empty($setting['home_banner'])?base_url($setting['home_banner']):''; ?>" class="service_icon_preview" alt="">
							</div>
							 <input type="file" name="images" class="service_img" data-height="0" data-width="0">
					    </div>
					   
					</div>
				    <input type="hidden" name="id" value="<?= isset($data['id']) && $data['id'] !=0?$data['id']:0 ?>">
				</div><!-- /.box-body -->
				<div class="box-footer">
					<?php if(isset($data['id']) && $data['id'] !=0){ ?>
						<div class="pull-left">
			          		<a href="<?= base_url('admin/dashboard/home_setting'); ?>" class="btn btn-default btn-block btn-flat"><?= !empty(lang('cancel'))?lang('cancel'):"cancel";?></a>
			          	</div>
		          <?php } ?>
		          	<div class="pull-right">
		          		<button type="submit" name="register" class="btn btn-primary btn-block btn-flat"><?= !empty(lang('submit'))?lang('submit'):"submit";?></button>
		          	</div>
				</div>
			</form>
		</div>
		
		
	</div>
	<div class="col-md-5">
		
		<div class="box box-primary">
			<div class="box-header with-border">
				<h3 class="box-title"><?= !empty(lang('home_small_banner'))?lang('home_small_banner'):"Home Small Banner";?> </h3>
				<div class="box-tools pull-right">
					<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
					<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
				</div>
			</div>
			<!-- /.box-header -->
			<form action="<?= base_url('admin/dashboard/add_home_banner/home_small') ?>" method="post" class="" enctype= "multipart/form-data">
				<div class="box-body">

					<!-- csrf token -->
					<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>">
					

					<div class="row">
						<div class="form-group col-md-12">
					      	<label for="heading"><?= !empty(lang('home_small_banner'))?lang('home_small_banner'):"Home Small Banner";?> <small><?= lang('size'); ?> : 400x300px</small></label>
					        <div class="logo" style="height: 300px; width: 100%; border-radius: 0;">
								<img src="<?= !empty($setting['home_small_image'])?base_url($setting['home_small_image']):''; ?>" id="preview_load_image" class="" alt="" style="width: 100%;height: 100%;object-fit: cover;">
							</div>
							 <input type="file" name="images" id="load_image" class="load_image" data-height="0" data-width="0">

					    </div>
					   
					</div>
				    <input type="hidden" name="id" value="<?= isset($data['id']) && $data['id'] !=0?$data['id']:0 ?>">
				</div><!-- /.box-body -->
				<div class="box-footer">
					<?php if(isset($data['id']) && $data['id'] !=0){ ?>
						<div class="pull-left">
			          		<a href="<?= base_url('admin/dashboard/home_setting'); ?>" class="btn btn-default btn-block btn-flat"><?= !empty(lang('cancel'))?lang('cancel'):"cancel";?></a>
			          	</div>
		          <?php } ?>
		          	<div class="pull-right">
		          		<button type="submit" name="register" class="btn btn-primary btn-block btn-flat"><?= !empty(lang('submit'))?lang('submit'):"submit";?></button>
		          	</div>
				</div>
			</form>
		</div>

		
	</div>
</div>