<?php $auth_info = get_auth_info(); ?>
<?php $image = single_select_by_user_id(auth('id'),'features_images'); ?>
<div class="row">
	<div class="col-md-12">
		<div class="box box-info">
			<div class="box-header with-border">
				<h3 class="box-title"><?= !empty(lang('layout_banner'))?lang('layout_banner'):"Layout Banners" ;?> </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 -->
			<div class="box-body">
				<div class="upcoming_events">
					<form action="#" method="post" enctype="multipart/form-data"> 

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

						<div class="row">
							<div class="col-md-12">
								<div class="reg_msg"></div>
							</div>
							<div class="col-md-6">
								<div class="img_area layout_img_area">
									<div class=""><h3><?= get_features_name('home');?></h3></div>
									<div class="banner_img">
										<img src="<?= base_url(isset($image['home'])?$image['home']:'');?>" id="home" alt="" style="display: none;">
									<?php if(isset($image['home']) && !empty($image['home'])): ?>
										<div class="banner_image home">
											<img src="<?= html_escape(get_layout_img($image['home']));?>" id="home" alt="">
											<a href="javascript:;" class="banner_img_del" data-id="home"><i class="fa fa-trash"></i></a>
										</div>
										<?php else: ?>
											<div class="banner_empty_text home">
												<h4><?= !empty(lang('set_banner'))?lang('set_banner'):"Set Banner" ;?></h4>
												
											</div>
										<?php endif;?>
									</div>
									<div class="form-group">
										<label class="banner_img_upload">
											<i class="fa fa-upload"></i>
											<p><?= !empty(lang('upload_image'))?lang('upload_image'):"Upload Image" ;?></p>
											<input type="file" name="file[]" class="layout-images none" data-id="home" id="home">
										</label>
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="img_area layout_img_area">
									<div class=""><h3><?= get_features_name('about');?></h3></div>
									<div class="banner_img">
										<img src="<?= base_url(isset($image['about'])?$image['about']:'');?>" id="about" alt="" style="display: none;">
										<?php if(!empty($image['about'])): ?>
										<div class="banner_image about">
											<img src="<?= html_escape(get_layout_img($image['about']));?>" id="about" alt="">
											<a href="javascript:;" class="banner_img_del" data-id="about"><i class="fa fa-trash"></i></a>
										</div>
										<?php else: ?>
											<div class="banner_empty_text about">
												<h4><?= !empty(lang('set_banner'))?lang('set_banner'):"Set Banner" ;?></h4>
												
											</div>
										<?php endif;?>
									</div>
									<div class="form-group">
										<label class="banner_img_upload">
											<i class="fa fa-upload"></i>
											<p><?= !empty(lang('upload_image'))?lang('upload_image'):"Upload Image" ;?></p>
											<input type="file" data-id="about" name="file[]" class="none layout-images" id="about">
										</label>
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="img_area layout_img_area">
									<div class=""><h3><?= get_features_name('services');?> </h3></div>
									<div class="banner_img">
										<img src="<?= base_url(isset($image['services'])?$image['services']:'');?>" id="services" alt="" style="display: none;">
										<?php if(!empty($image['services'])): ?>
										<div class="banner_image services">
											<img src="<?= html_escape(get_layout_img($image['services']));?>" id="services" alt="">
											<a href="javascript:;" class="banner_img_del" data-id="services"><i class="fa fa-trash"></i></a>
										</div>	
										<?php else: ?>
											<div class="banner_empty_text services">
												<h4><?= !empty(lang('set_banner'))?lang('set_banner'):"Set Banner" ;?></h4>
												
											</div>
										<?php endif;?>
									</div>
									<div class="form-group">
										<label class="banner_img_upload">
											<i class="fa fa-upload"></i>
											<p><?= !empty(lang('upload_image'))?lang('upload_image'):"Upload Image" ;?></p>
											<input type="file" data-id="services" name="file[]" class="none layout-images" id="services">
										</label>
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="img_area layout_img_area">
									<div class=""><h3><?= get_features_name('review');?> </h3></div>
									<div class="banner_img">
										<img src="<?= base_url(isset($image['review'])?$image['review']:'');?>" id="review" alt="" style="display: none;">
										<?php if(!empty($image['review'])): ?>
											<div class="banner_image review">
											<img src="<?= html_escape(get_layout_img($image['review']));?>" id="review" alt="">
											<a href="javascript:;" class="banner_img_del" data-id="review"><i class="fa fa-trash"></i></a>
										</div>
										<?php else: ?>
											<div class="banner_empty_text">
												<h4><?= !empty(lang('set_banner'))?lang('set_banner'):"Set Banner" ;?></h4>
												
											</div>
										<?php endif;?>
									</div>
									<div class="form-group">
										<label class="banner_img_upload">
											<i class="fa fa-upload"></i>
											<p><?= !empty(lang('upload_image'))?lang('upload_image'):"Upload Image" ;?></p>
											<input type="file" data-id="review" name="file[]" class="none layout-images" id="review">
										</label>
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="img_area layout_img_area">
									<div class=""><h3><?= get_features_name('skills');?> </h3></div>
									<div class="banner_img">
										<img src="<?= base_url(isset($image['skills'])?$image['skills']:'');?>" id="skills" alt="" style="display: none;">
										<?php if(!empty($image['skills'])): ?>
										<div class="banner_image skills">
											<img src="<?= html_escape(get_layout_img($image['skills']));?>" id="skills" alt="">
											<a href="javascript:;" class="banner_img_del" data-id="skills"><i class="fa fa-trash"></i></a>
										</div>
										<?php else: ?>
											<div class="banner_empty_text skills">
												<h4><?= !empty(lang('set_banner'))?lang('set_banner'):"Set Banner" ;?></h4>
												
											</div>
										<?php endif;?>
									</div>
									<div class="form-group">
										<label class="banner_img_upload">
											<i class="fa fa-upload"></i>
											<p><?= !empty(lang('upload_image'))?lang('upload_image'):"Upload Image" ;?></p>
											<input type="file" data-id="skills" name="file[]" class="none layout-images" id="skills">
										</label>
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="img_area layout_img_area">
									<div class=""><h3><?= get_features_name('resume');?> </h3></div>
									<div class="banner_img">
										<img src="<?= base_url(isset($image['resume'])?$image['resume']:'');?>" id="resume" alt="" style="display: none;">
										<?php if(!empty($image['resume'])): ?>
										<div class="banner_image resume">
											<img src="<?= html_escape(get_layout_img($image['resume']));?>" id="resume" alt="">
											<a href="javascript:;" class="banner_img_del" data-id="resume"><i class="fa fa-trash"></i></a>
										</div>
										<?php else: ?>
											<div class="banner_empty_text resume">
												<h4><?= !empty(lang('set_banner'))?lang('set_banner'):"Set Banner" ;?></h4>
												
											</div>
										<?php endif;?>
									</div>
									<div class="form-group">
										<label class="banner_img_upload">
											<i class="fa fa-upload"></i>
											<p><?= !empty(lang('upload_image'))?lang('upload_image'):"Upload Image" ;?></p>
											<input type="file" data-id="resume" name="file[]" class="none layout-images" id="resume">
										</label>
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="img_area layout_img_area">
									<div class=""><h3><?= get_features_name('portfolio');?> </h3></div>
									<div class="banner_img">
										<img src="<?= base_url(isset($image['resume'])?$image['portfolio']:'');?>" id="portfolio" alt="" style="display: none;">
										<?php if(!empty($image['portfolio'])): ?>
										<div class="banner_image portfolio">
											<img src="<?= html_escape(get_layout_img($image['portfolio']));?>" id="portfolio" alt="">
											<a href="javascript:;" class="banner_img_del" data-id="portfolio"><i class="fa fa-trash"></i></a>
										</div>
										<?php else: ?>
											<div class="banner_empty_text portfolio">
												<h4><?= !empty(lang('set_banner'))?lang('set_banner'):"Set Banner" ;?></h4>
												
											</div>
										<?php endif;?>
									</div>
									<div class="form-group">
										<label class="banner_img_upload">
											<i class="fa fa-upload"></i>
											<p><?= !empty(lang('upload_image'))?lang('upload_image'):"Upload Image" ;?></p>
											<input type="file" data-id="portfolio" name="file[]" class="none layout-images" id="portfolio">
										</label>
									</div>
								</div>
							</div>

							<div class="col-md-6">
								<div class="img_area layout_img_area">
									<div class=""><h3><?= get_features_name('blog');?> </h3></div>
									<div class="banner_img">
										<img src="<?= base_url(isset($image['blog'])?$image['blog']:'');?>" id="blog" alt="" style="display: none;">
										<?php if(!empty($image['blog'])): ?>
										<div class="banner_image blog">
											<img src="<?= html_escape(get_layout_img($image['blog']));?>" id="blog" alt="">
											<a href="javascript:;" class="banner_img_del" data-id="blog"><i class="fa fa-trash"></i></a>
										</div>
										<?php else: ?>
											<div class="banner_empty_text blog">
												<h4><?= !empty(lang('set_banner'))?lang('set_banner'):"Set Banner" ;?></h4>
												
											</div>
										<?php endif;?>
									</div>
									<div class="form-group">
										<label class="banner_img_upload">
											<i class="fa fa-upload"></i>
											<p><?= !empty(lang('upload_image'))?lang('upload_image'):"Upload Image" ;?></p>
											<input type="file" data-id="blog" name="file[]" class="none layout-images" id="blog">
										</label>
									</div>
								</div>
							</div>


							<div class="col-md-6">
								<div class="img_area layout_img_area">
									<div class=""><h3><?= get_features_name('appointment');?> </h3></div>
									<div class="banner_img">
										<img src="<?= base_url(isset($image['appointment'])?$image['appointment']:'');?>" id="appointment" alt="" style="display: none;">
										<?php if(!empty($image['appointment'])): ?>
										<div class="banner_image appointment">		
											<img src="<?= html_escape(get_layout_img($image['appointment']));?>" id="appointment" alt="">
											<a href="javascript:;" class="banner_img_del" data-id="appointment"><i class="fa fa-trash"></i></a>
										</div>
										<?php else: ?>
											<div class="banner_empty_text appointment">
												<h4><?= !empty(lang('set_banner'))?lang('set_banner'):"Set Banner" ;?></h4>
												
											</div>
										<?php endif;?>
									</div>
									<div class="form-group">
										<label class="banner_img_upload">
											<i class="fa fa-upload"></i>
											<p><?= !empty(lang('upload_image'))?lang('upload_image'):"Upload Image" ;?></p>
											<input type="file" data-id="appointment" name="file[]" class="none layout-images" id="appointment">
										</label>
									</div>
								</div>
							</div>

							

							<div class="col-md-6">
								<div class="img_area layout_img_area">
									<div class=""><h3><?= get_features_name('contacts');?> </h3></div>
									<div class="banner_img">
										<img src="<?= base_url(isset($image['contacts'])?$image['contacts']:'');?>" id="contacts" alt="" style="display: none;">
										<?php if(!empty($image['contacts'])): ?>
										<div class="banner_image contacts">
											<img src="<?= html_escape(get_layout_img($image['contacts']));?>" id="contacts" alt="">
											<a href="javascript:;" class="banner_img_del" data-id="contacts"><i class="fa fa-trash"></i></a>
										</div>
										<?php else: ?>
											<div class="banner_empty_text contacts">
												<h4><?= !empty(lang('set_banner'))?lang('set_banner'):"Set Banner" ;?></h4>
												
											</div>
										<?php endif;?>
									</div>
									<div class="form-group">
										<label class="banner_img_upload">
											<i class="fa fa-upload"></i>
											<p><?= !empty(lang('upload_image'))?lang('upload_image'):"Upload Image" ;?></p>
											<input type="file" data-id="contacts" name="file[]" class="none layout-images" id="contacts">
										</label>
									</div>
								</div>
							</div>
							
						</div>
					</form>
					
				</div>	
			</div><!-- /.box-body -->
		</div>
	</div>
</div>