<div class="form-group">
                                            <!-- Redirect browsers with JavaScript disabled to the origin page -->
                                            <!-- form -->
    										<noscript>
    											<input type="hidden" name="redirect" value="https://blueimp.github.io/jQuery-File-Upload/">
    										</noscript>
    										
    										<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
    										<div class="fileupload-buttonbar">
    											<div class="fileupload-buttons">
    												<div class="col-lg-12 text-center">
    													<div class="btn-group">
    														<button type="button" class="btn btn-success fileinput-button" style="height: 39px;">
																<i class="glyphicon glyphicon-plus"></i>
																<span><?php e('enviar imagem'); ?></span>
																<input type="file" name="files[]" multiple>
    														</button>
    														<button type="reset" class="btn btn-warning cancel" style="height: 39px;">
    															<i class="glyphicon glyphicon-ban-circle"></i>
    															<span><?php e('cancelar upload'); ?></span>
    														</button>
    													</div>
    
    													<!-- The global file processing state -->
    													<span class="fileupload-process"></span>
    													
    												</div>
    												<!-- The global progress state -->
    
    												<div class="fileupload-progress fade" style="display:none">
    													<!-- The global progress bar -->
    													<div id="progress" class="progress active">
    														<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuemin="10" aria-valuemax="100"></div>
    													</div>
    													<div class="progress" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
    													<!-- The extended global progress state -->
    													<div class="progress-extended">&nbsp;</div>
    												</div>
    											</div>
    											<!-- The table listing the files available for upload/download -->
    											<table role="presentation" class="table-responsive table table-hover">
    												<tbody class="files"></tbody>
    											</table>
    										</div>
    										<!-- end form -->
    										<!-- The blueimp Gallery widget -->
        									<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls"  data-hide-page-scrollbars="false" data-filter=":even">
        										<div class="slides"></div>
        										<h3 class="title"></h3>
        										<a class="prev">‹</a>
        										<a class="next">›</a>
        										<a class="close">×</a>											
        									</div>
        									<!-- The template to display files available for upload -->
                                            <script id="template-upload" type="text/x-tmpl">
                                                {% for (var i=0, file; file=o.files[i]; i++) { %}
                                                <tr class="template-upload fade">
                                                    <td>
                                                        <span class="preview"></span>
                                                    </td>
                                                    <td>
                                                        <p class="name">{%=file.name%}</p>
                                                        <strong class="error text-danger"></strong>
                                                        <p class="size hidden-lg">Processing...</p>
                                                        <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">
                                                            <div class="progress-bar progress-bar-success" style="width:0%;"></div>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        {% if (!i && !o.options.autoUpload) { %}
                                                        <button class="btn btn-primary start" disabled>
                                                            <i class="glyphicon glyphicon-upload"></i>
                                                            <span><?php e(lang('lbl_btn_upload')); ?></span>
                                                        </button>
                                                        {% } %} {% if (!i) { %}
                                                        <button class="btn btn-warning cancel">
                                                            <i class="glyphicon glyphicon-ban-circle"></i>
                                                            <span><?php e(lang('lbl_btn_cancelar_upload')); ?></span>
                                                        </button>
                                                        {% } %}
                                                    </td>
                                                </tr>
                                                {% } %}
                                            </script>
                                            <!-- The template to display files available for download -->
                                            <script id="template-download" type="text/x-tmpl"></script>
    										
    										<?php //if(isset($imagens)){?>
            								<div class="btn-group">
            									<button type="button" class="btn btn-default" style="height: 39px;">
            										<input type="checkbox" class="toggle-galery">
            									</button>
            									<button type="button" class="btn btn-danger delete-toggle" style="height: 39px;">
            										<i class="glyphicon glyphicon-trash"></i>
            										<span>Excluir</span>
            									</button>
            								</div>
            								<table role="presentation" class="table-responsive table table-hover">
            									<thead>
            										<tr>
            										    <th>Ação</th>
            											<th class="content-center">preview</th>
            											<th class="hidden-xs">titulo</th>
            											<th class="hidden-xs">tamanho</th>
            											<th>opções</th>
            										</tr>
            									</thead>
            									<tbody class="galeria">
            										<tr class="hidden clone image-block">
            											<td>
            											    <button type="button" class="btn btn-default" style="height: 39px;">
            													<input type="checkbox">
            												</button>
            											</td>
            											<td class="content-center">
            												<span>
            									            	<a href="#" title="" download="" data-gallery="" class="previewLink">
            									            	<img class="previewImg" src="">
            									            	</a>
            								            	</span>
            											</td>
            											<td class="hidden-xs">
            												<input type="hidden" class="form-control" name="descricao_img" />
            												<div class="nome" data-img=""></div>
            											</td>
            											<td class="hidden-xs">
            												<span class="size"></span>
            											</td>
            											<td>
            												<div class="flex">
            													<button class="btn btn-app btn-info princ-img btn-xs" data-img="">
            														<i class="fa fa-flag" aria-hidden="true"></i>
            														<span><?php e('principal'); ?></span>
            													</button>
            													<button class="btn btn-app btn-danger delete-img btn-xs" >
            														<i class="glyphicon glyphicon-trash"></i>
            														<span><?php e('deletar'); ?></span>
            													</button>
            												</div>
            											</td>
            										</tr>
            										<?php// foreach($imagens as $img){ ?>
            											<tr class="image-block">
            												<td>
            												    <button type="button" class="btn btn-default" style="height: 39px;">
            														<input type="checkbox" class="checkbox" data-url="<?php echo base_url(); ?>">
            													</button>
            												</td>
            												<td class="content-center">
            													<span class="preview">
            										            	<a href="<?php e("#"); ?>" title="<?php e("#"); ?>" download="<?php e("#"); ?>" data-gallery="" class="previewLink" >
            									            	        <img class="previewImg <?php e("#"); ?>" src="<?php e("#"); ?>">
            									            	    </a>
            									            	</span>
            												</td>
            												<td class="hidden-xs">
            													<input type="hidden" class="form-control" name="descricao_img" value="<?php e("#"); ?>" />
            													<input type="hidden" class="form-control" name="imagem" value="<?php e("#"); ?>" />
            													<div class="nome" data-img="<?php e("#"); ?>">
            														<?php e("#"); ?>
            													</div>
            												</td>
            												<td class="hidden-xs">
            													<span class="size"><?php e(formatBytes(1000)); ?></span>
            												</td>
            												<td>
            													<div class="flex">
            														<button class="btn btn-app btn-info princ-img btn-xs" data-img="<?php e("#"); ?>"<?php e("#"); ?> >
            															<i class="fa fa-flag" aria-hidden="true"></i>
            															<span><?php e('principal'); ?></span>
            														</button>
            														<button class="btn btn-app btn-danger delete-img btn-xs" >
            															<i class="glyphicon glyphicon-trash"></i>
            															<span><?php e('deletar'); ?></span>
            														</button>
            													</div>
            												</td>
            											</tr>
            										<?php// } ?>
            									</tbody>
            								</table>
            
            								<!-- The blueimp Gallery widget -->
            								<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls"  data-hide-page-scrollbars="false" data-filter=":even">
            									<div class="slides"></div>
            									<h3 class="title"></h3>
            									<a class="prev">‹</a>
            									<a class="next">›</a>
            									<a class="close">×</a>
            								</div>
            							<?php //} else {?>
            								<blockquote id="noImg">
            									<p>
            										<?php e('sem imagem'); ?>
            									</p>
            								</blockquote>
            								<div class="btn-group btn-hidden hidden">
            									<button type="button" class="btn btn-default" style="height: 39px;">
            										<input type="checkbox" class="toggle-galery">
            									</button>
            									<button type="button" class="btn btn-danger delete-toggle" style="height: 39px;">
            										<i class="glyphicon glyphicon-trash"></i>
            										<span><?php e('Excluir'); ?></span>
            									</button>
            								</div>
            								<table role="presentation" class="table-responsive table table-hover hidden">
            									<thead>
            										<tr>
            										    <th>Ação</th>
            											<th>
            												<?php e('preview'); ?>
            											</th>
            											<th class="hidden-xs">
            												<?php e('titulo'); ?> <i class="fa fa-exclamation-circle" aria-hidden="true" data-toggle="tooltip" data-placement="right" title="Para alterar o título e a descrição da imagem, clique no botão detalhes."></i></th>
            											<th class="hidden-xs">
            												<?php e('tamanho'); ?>
            											</th>
            											<th>
            												<?php e('opções'); ?>
            											</th>
            										</tr>
            									</thead>
            									<tbody class="galeria">
            										<tr class="hidden clone image-block">
            											<td>
            											    <button type="button" class="btn btn-default" style="height: 39px;">
            													<input type="checkbox">
            												</button>
            												<span class="preview">
            									            	<a href="#" title="" download="" data-gallery="" class="previewLink"><img class="previewImg" src=""></a>
            								            	</span>
            											</td>
            											<td class="hidden-xs">
            												<input type="hidden" class="form-control" name="descricao" />
            												<div class="nome" data-img=""></div>
            											</td>
            											<td class="hidden-xs">
            												<span class="size"></span>
            											</td>
            											<td>
            												<div class="flex">
            													<button class="btn btn-app btn-info princ-img btn-xs" data-img="">
            														<i class="fa fa-flag" aria-hidden="true"></i>
            														<span><?php e('principal'); ?></span>
            													</button>
            													<button class="btn btn-app btn-danger delete-img btn-xs" >
            														<i class="glyphicon glyphicon-trash"></i>
            														<span><?php e('deletar'); ?></span>
            													</button>
            												</div>
            											</td>
            										</tr>
            										<!-- aqui termina o clone -->
            									</tbody>
            								</table>
            							<?php// } ?>
    										
    										
    										
    										
    										
    										
    										
    										
                                            <!--<label for="fotos_imovel">Fotos do Imóvel</label>
                                            <input type="file" name="fotos_imovel[]" class="form-control-file" id="fotos_imovel">-->
                                        </div>