<div id="<?php echo e((empty($idModal) ? 'dlgFormulario' : $idModal)); ?>" class="modal fade <?php echo e((!empty($classeModal) ? $classeModal : '')); ?>"  tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg " <?php echo e(empty($responsivo) ? ('style=width:'.(empty($largura) ? '500' : $largura).'px;' . ((!empty($forcaTamanho) && $forcaTamanho == 'true') ? 'min-width:' .$largura. 'px;' : '' ) ) : ''); ?> >
        <!-- Modal content-->
        <div class="modal-content" role="document">
            <div class="modal-header <?php echo e((!empty($classeHeader) ? $classeHeader : '')); ?>">
                <h4 class="modal-title"><i id="icone_form_modal<?php echo e((empty($idModal) ? '' :'_'.$idModal)); ?>" class="fas <?php echo e((empty($icone) ? '' : $icone)); ?>"></i> <txt id="titulo_form_modal<?php echo e((empty($idModal) ? '' :'_'.$idModal)); ?>"><?php echo e($titulo); ?></txt></h4>
                <button type="button" class="close" data-dismiss="modal">×</button>
            </div>
            <div class="modal-body">
                <div class="container-fluid">
                    <form method="POST" enctype="multipart/form-data" action="<?php echo e((empty($rota) ? '' : route($rota))); ?>" >
                        <?php echo csrf_field(); ?>

                        <input type="hidden" id="id_form_modal<?php echo e((empty($idModal) ? '' :'_'.$idModal)); ?>" name="id"/>

                        <?php $__currentLoopData = $campos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $controle): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                            <?php if($controle["tipo"] == 'hidden'): ?>

                                <?php echo $__env->make('partials._controles_form',['controle'=>$controle], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>

                            <?php else: ?>

                                <div class="form-group row">

                                    <!-- mais de um campo na mesma linha -->
                                    <?php if($controle["tipo"] == 'array'): ?>

                                        <?php for($c = 0; $c < count($controle['campos']); $c++): ?>

                                            <div class="col col-form col-sm-<?php echo e($controle['campos'][$c]['largura']); ?> <?php echo e((!empty($controle['campos'][$c]['classeColuna']) ? $controle['campos'][$c]['classeColuna'] : '' )); ?>"
                                                 style="padding:0px;<?php echo e(($c == (count($controle['campos']) - 1) ? '' : 'padding-right:'.(empty($controle['campos'][$c]['padding']) ? '10' : $controle['campos'][$c]['padding']).'px;')); ?>">
                                                <label id="<?php echo e($controle['campos'][$c]['id']); ?>_label" for="<?php echo e($controle['campos'][$c]['id']); ?>" class="text-md-left"><?php echo e($controle['campos'][$c]['label']); ?></label>

                                                <?php echo $__env->make('partials._controles_form',['controle'=>$controle['campos'][$c]], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                            </div>

                                        <?php endfor; ?>

                                    <?php else: ?>

                                    <div class="col col-form col-sm-<?php echo e((!empty($controle['campos']['largura']) ? $controle['campos']['largura'] : '12')); ?> <?php echo e((!empty($controle['campos']['classe']) ? $controle['campos']['classe'] : '' )); ?>"
                                         style="padding:0px; <?php echo e((!empty($controle['campos']['largura']) ? 'padding-right:10px' : '')); ?>">
                                        <label id="<?php echo e($controle['id']); ?>_label" for="<?php echo e($controle['id']); ?>" style="padding-right:20px;" class="col-form-label text-md-left"><?php echo e($controle['label']); ?></label>

                                        <?php echo $__env->make('partials._controles_form',['controle'=>$controle], \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                    </div>
                                    <?php endif; ?>

                                </div>
                            <?php endif; ?>

                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                        <?php if(empty($controles_salvar) || $controles_salvar == 'true'): ?>
                            <div class="form-group row">
                                <button id="btnFormModal<?php echo e((empty($idModal) ? '' :'_'.$idModal)); ?>" type="submit" class="btn btn-success" style="margin-right:10px;"><i class="fas fa-save"></i> Salvar</button>
                                <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fas fa-times-circle"></i> Cancelar</button>
                            </div>
                        <?php endif; ?>

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

            <?php if(!empty($controles_fechar) && $controles_fechar == 'true'): ?>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default"  data-dismiss="modal">FECHAR</button>
                </div>
            <?php endif; ?>


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