 
	   <div class="form-group col-lg-12">
									 <?php echo $form->labelEx($model, 'image');?>
								
									 
									 
									
									 <div class="clearfix"><!-- --></div>
									 <?php 
								   if(!empty($image_array) )
								   {
									   
									   ?>
										<div class="property_img_box" style="margin-bottom:20px;display: flex;flex-wrap: wrap;">
											
											<?php
											$image = "";
											foreach($image_array as $k=>$v)
											{
												$image .= ",".$v;
											?>
											<div id="property_img_<?php echo $k;?>" class="property_img" style="margin-bottom:15px;">
											<img src="<?php echo Yii::app()->apps->getBaseUrl('uploads/images/'.@$v) ?>" style="width:100%;height:100%;object-fit:cover;">
											<div class="property_img_overlay">
											<span class="isw-favorite" style="margin-right: 0px;"></span>
											</a>
											<a class="btn btn-danger btn-small" onclick="delete_property_image211('<?php echo $v;?>',this);">
											<span class="isw-delete2" style="margin-right: 0px;"></span>
											</a>
											</div>
											</div>
											<?
											}
									   ?>
										</div>
										<?php
										$model->image = $image;
								   }
								   ?>
									<?php echo $form->hiddenField($model, 'image', $model->getHtmlOptions('image')); ?>
									
									
									 <div class="clearfix"><!-- --></div>
									 	 <?php
									 if($model->section_id=='3'){
										 ?>
									 
										 <?
									 }
									 else{
										 ?>
										 	 <div class="clearfix"></div>
										 <button type="button" class="btn bg-maroon btn-flat  "><?php echo $this->tag->gettAg('banner','Banner');?>  : <span dir="ltr">962 X 500</span>  </button>
										 <a href="<?php echo ASKAAN_PATH_BASE.'/image_editer/pixie';?>" target="_blank"><button type="button" class="btn bg-purple btn-flat  margin pull-right" style="margin-right:0px;"><i class="fa fa-pencil-square-o"></i> <?php echo $this->tag->gettAg('use_our_image_editor','Use Our Image1 Editor');?>  </button></a>
										 <div class="clearfix"></div>
										 <?
									 }
									 ?>
									 <div class="clearfix"><!-- --></div>
									 	 <div  style="color:#4E4E4E;font-size:12px; ; ;"><?php echo $this->tag->getTag('hint','Hint: File types allowed')?>:<b> jpg, gif, png </b>. </div>
								 <div class="clearfix"><!-- --></div>
									<div style="color:#4E4E4E;font-size:13px;background:#EAEAEA;padding:15px;display:none; "><?php echo $this->tag->getTag('drag-drop-photos','Drag and drop Photos here or click below to select photos from your computer');?> <div class="clearfix"></div></div> 
									<div id="myId" class="dropzone" title="Click or Drag here to upload photos"></div>
									<script type="text/javascript">
										var crop_id='3';
									var myDropzone = new Dropzone("div#myId", { url: "<?php echo $this->createUrl('upload'); ?>",addRemoveLinks: true,  resizeWidth :960,   acceptedFiles: ".gif,.jpg,.jpeg,.png"}) //according to your forms action
									 myDropzone.on("removedfile", function(file, serverFileName) {
									 $.post("<?php echo $this->createUrl('delete_image'); ?>",{file:file.serverId,inp:$("#PlaceAnAd_image").val()},function(data){  $("#PlaceAnAd_image").val(data) ; } );
									});
									myDropzone.on("success", function(file,serverFileName) {
								 
										 file.serverId =serverFileName;
										 var vals  = $("#PlaceAnAd_image").val();
										 vals += ","+serverFileName;
										 $("#PlaceAnAd_image").val(vals) ;
										 
									});
									var imgs = $("#PlaceAnAd_image").val(); 
									function delete_property_image(img, val,k)
									{
										 $.post("<?php echo $this->createUrl($this->id.'/delete_image'); ?>",{file:img,inp:val},function(data){  $("#PlaceAnAd_image").val(data) ;imgs = data; } );
										 $(k).parent().parent().remove();
									}
									function delete_property_image211(val,k)
									{
					                     	var imgs = $("#PlaceAnAd_image").val(); 
					                      
										 $.post("<?php echo $this->createUrl($this->id.'/delete_image'); ?>",{file:val,inp:imgs},function(data){  $("#PlaceAnAd_image").val(data) ;imgs=data; } );
										 $(k).parent().parent().remove();
									}
									</script>
									    <div class="clearfix"></div>
										<?php echo $form->error($model, 'image');?>
								
	</div> 
