<?php $__env->startSection('content'); ?>
<div class="row match-height">
    <div class="col-md-12 col-12">
        <div class="card">
            <div class="card-header">
                <h4 class="card-title text-primary">Entidade</h4>
                <p class="text-muted">Cadastro da Entidade no Sistema</p>
                <form action="<?php echo e(route('entidade.update', $entidade->id_tce)); ?>" method="POST" class="form-horizontal" enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('PUT'); ?>
                    <div class="box box-info">
                        <div class="row">
                            <div class="form-group col-md-2">
                                <label class="col-form-label">Entidade no TCE</label>
                                <input type="text" name="id_tce" value="<?php echo e($entidade->id_tce); ?>" class="form-control" readonly>
                            </div>
                            <div class="form-group col-md-8">
                                <label class="col-form-label">Entidade</label>
                                <input type="text" name="entidade" value="<?php echo e($entidade->entidade); ?>" class="form-control" readonly>
                            </div>
                            <div class="form-group col-md-8">
                                <label class="col-form-label">Tipo</label>
                                <input type="text" name="tipo" value="<?php echo e($entidade->tipo); ?>" class="form-control" readonly>
                            </div>
                            <div class="form-group col-md-2">
                                <label class="col-form-label">Data de Cadastro</label>
                                <input type="text" name="data_cadastro" value="<?php echo e(date('d/m/Y', strtotime($entidade->data_cadastro))); ?>" class="form-control" readonly>
                            </div>
                        </div>
                        <div class="row">
                            <div class="form-group col-md-4">
                                <label class="col-form-label">Endereço</label>
                                <input type="text" name="endereco" value="<?php echo e(old('endereco', $entidade->endereco)); ?>" class="form-control">
                                <?php $__errorArgs = ['endereco'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                            <div class="form-group col-md-3">
                                <label class="col-form-label">Bairro</label>
                                <input type="text" name="bairro" value="<?php echo e(old('bairro', $entidade->bairro)); ?>" class="form-control">
                                <?php $__errorArgs = ['bairro'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                            <div class="form-group col-md-3">
                                <label class="col-form-label">Cidade</label>
                                <input type="text" name="cidade" value="<?php echo e(old('cidade', $entidade->cidade)); ?>" class="form-control">
                                <?php $__errorArgs = ['cidade'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                            <div class="form-group col-md-2">
                                <label class="col-form-label">U.F.</label>
                                <input type="text" name="uf" value="<?php echo e(old('uf', $entidade->uf)); ?>" class="form-control">
                                <?php $__errorArgs = ['uf'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>
                        <div class="row">
                            <div class="form-group col-md-4">
                                <label class="col-form-label">C.N.P.J.</label>
                                <input type="text" name="cnpj" value="<?php echo e($entidade->cnpj); ?>" class="form-control" readonly>
                            </div>
                            <div class="form-group col-md-4">
                                <label class="col-form-label">Fone</label>
                                <input type="text" name="fone" value="<?php echo e(old('fone', $entidade->fone)); ?>" class="form-control">
                                <?php $__errorArgs = ['fone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                            <div class="form-group col-md-4">
                                <label class="col-form-label">E-mail</label>
                                <input type="email" name="email" value="<?php echo e(old('email', $entidade->email)); ?>" class="form-control">
                                <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="text-danger"><?php echo e($message); ?></span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>
                        <div class="row">
                            <div class="form-group col-md-1">
                                <label class="col-form-label">Diário</label>
                                <select name="diario" class="form-control">
                                    <option value="S" <?php if($entidade->diario == 'S'): ?> selected <?php endif; ?>>Sim</option>
                                    <option value="N" <?php if($entidade->diario == 'N'): ?> selected <?php endif; ?>>Não</option>
                                </select>
                            </div>
                            <div class="form-group col-md-1">
                                <label class="col-form-label">Covid</label>
                                <select name="covid" class="form-control">
                                    <option value="S" <?php if($entidade->covid == 'S'): ?> selected <?php endif; ?>>Sim</option>
                                    <option value="N" <?php if($entidade->covid == 'N'): ?> selected <?php endif; ?>>Não</option>
                                </select>
                            </div>
                            <div class="form-group col-md-1">
                                <label class="col-form-label">Aldir Blanc</label>
                                <select class="form-control" name="aldirblanc">
                                    <option value="S" <?php if($entidade->aldirblanc == 'S'): ?> selected <?php endif; ?>>Sim</option>
                                    <option value="N" <?php if($entidade->aldirblanc == 'N'): ?> selected <?php endif; ?>>Não</option>
                                </select>
                            </div>
                            <div class="form-group col-md-1">
                                <label class="col-form-label">CACS</label>
                                <select class="form-control" name="cacs">
                                    <option value="S" <?php if($entidade->cacs == 'S'): ?> selected <?php endif; ?>>Sim</option>
                                    <option value="N" <?php if($entidade->cacs == 'N'): ?> selected <?php endif; ?>>Não</option>
                                </select>
                            </div>
                            <div class="form-group col-md-1">
                                <label class="col-form-label">Concursos</label>
                                <select name="concursos" class="form-control">
                                    <option value="S" <?php if($entidade->concursos == 'S'): ?> selected <?php endif; ?>>Sim</option>
                                    <option value="N" <?php if($entidade->concursos == 'N'): ?> selected <?php endif; ?>>Não</option>
                                </select>
                            </div>
                            <div class="form-group col-md-1">
                                <label class="col-form-label">Empreendedor</label>
                                <select class="form-control" name="empreendedor">
                                    <option value="S" <?php if($entidade->empreendedor == 'S'): ?> selected <?php endif; ?>>Sim</option>
                                    <option value="N" <?php if($entidade->empreendedor == 'N'): ?> selected <?php endif; ?>>Não</option>
                                </select>
                            </div>
                            <div class="form-group col-md-2">
                                <label class="col-form-label">Paulo Gustavo</label>
                                <select class="form-control" name="paulogustavo">
                                    <option value="S" <?php if($entidade->paulogustavo == 'S'): ?> selected <?php endif; ?>>Sim</option>
                                    <option value="N" <?php if($entidade->paulogustavo == 'N'): ?> selected <?php endif; ?>>Não</option>
                                </select>
                            </div>
                            <div class="form-group col-md-4">
                                <label class="col-form-label">Cor predominante</label>
                                <input type="color" name="corpredominante" value="<?php echo e(old('corpredominante', $entidade->corpredominante)); ?>" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-form-label">Iframe do Google Maps</label>
                            <textarea name="mapagoogle" class="form-control <?php $__errorArgs = ['mapagoogle'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" rows="5"><?php echo e(old('mapagoogle', $entidade->mapagoogle)); ?></textarea>
                            <?php $__errorArgs = ['mapagoogle'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <span class="text-danger"><?php echo e($message); ?></span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                    </div>
                    <br>
                    <div class="form-group">
                        <button type="submit" class="btn btn-outline-success btn-block w-100">
                            Gravar Configurações
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\portalmunicipal\resources\views/admin/entidade/index.blade.php ENDPATH**/ ?>