
<?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">Editando Secretaria</h4>
                    <p class="text-muted">Editando Secretaria no Sistema</p>
                    <a class="btn btn-outline-primary w-100" type="button" href="<?php echo e(route('secretarias.index')); ?>"
                        role="button">Ver todas</a>
                </div>
                <div class="card">
                    <div class="card-body">
                        <form action="<?php echo e(route('secretarias.update', $secretarias->id)); ?>" method="POST"
                            class="form-horizontal">
                            <?php echo method_field('PUT'); ?>
                            <?php echo csrf_field(); ?>
                            <div class="box box-info">
                                <div class="row">
                                    <div class="form-group col-md-10">
                                        <label class="col-form-label">Nome da Secretaria <span>*</span></label>
                                        <input type="text" name="secretaria_nome"
                                            value="<?php echo e($secretarias->secretaria_nome); ?>"
                                            class="form-control <?php $__errorArgs = ['secretaria_nome'];
$__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); ?>">
                                    </div>
                                    <div class="form-group col-md-2">
                                        <label class="col-form-label">Sigla <span>*</span></label>
                                        <input type="text" name="secretaria_sigla"
                                            value="<?php echo e($secretarias->secretaria_sigla); ?>"
                                            class="form-control <?php $__errorArgs = ['secretaria_sigla'];
$__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); ?>">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-form-label">Slug <span>*</span></label>
                                    <input type="text" name="secretaria_slug" value="<?php echo e($secretarias->secretaria_slug); ?>"
                                        class="form-control <?php $__errorArgs = ['secretaria_slug'];
$__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); ?>"
                                        placeholder="Campo preenchido automaticamente pelo sistema" disabled>
                                </div>

                                <div class="form-group">
                                    <label class="col-form-label">Detalhes </label>
                                    <textarea type="text" class="form-control <?php $__errorArgs = ['secretaria_detalhe'];
$__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); ?> bodyfield" rows="5"
                                        name="secretaria_detalhe" id="editor"><?php echo e($secretarias->secretaria_detalhe); ?></textarea>
                                </div>

                                <div class="row">
                                    <div class="form-group col-md-6">
                                        <label class="col-form-label">Endereço <span>*</span></label>
                                        <input type="text" name="secretaria_endereco"
                                            value="<?php echo e($secretarias->secretaria_endereco); ?>"
                                            class="form-control <?php $__errorArgs = ['secretaria_endereco'];
$__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); ?>">
                                    </div>

                                    <div class="form-group col-md-3">
                                        <label class="col-form-label">Fixo <span>*</span></label>
                                        <input type="text" name="secretaria_fixo"
                                            value="<?php echo e($secretarias->secretaria_fixo); ?>" class="form-control">
                                    </div>

                                    <div class="form-group col-md-3">
                                        <label class="col-form-label">Celular <span>*</span></label>
                                        <input type="text" name="secretaria_celular"
                                            value="<?php echo e($secretarias->secretaria_celular); ?>"
                                            class="form-control <?php $__errorArgs = ['secretaria_celular'];
$__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); ?>">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-form-label">E-mail <span>*</span></label>
                                    <input type="text" name="secretaria_email"
                                        value="<?php echo e($secretarias->secretaria_email); ?>"
                                        class="form-control <?php $__errorArgs = ['secretaria_email'];
$__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); ?>">
                                </div>
                                <div class="form-group">
                                    <label class="col-form-label">Horário de Atendimento <span>*</span></label>
                                    <input type="text" name="horario_atendimento"
                                        value="<?php echo e($secretarias->horario_atendimento); ?>"
                                        class="form-control <?php $__errorArgs = ['horario_atendimento'];
$__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); ?>">
                                </div>
                                <div class="form-group">
                                    <label class="col-form-label">Secretário <span>*</span></label>
                                    <select name="id_secretario"
                                        class="form-control <?php $__errorArgs = ['id_secretario'];
$__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); ?>">
                                        <?php $__currentLoopData = $secretarios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $secretario): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($secretario->id); ?>"><?php echo e($secretario->nome); ?>

                                            </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>

                                <div class="form-group">
                                    <label class="col-form-label">Foto <span>*</span></label>
                                    <input type="file" name="secretaria_foto"
                                        value="<?php echo e($secretarias->secretaria_foto); ?>"
                                        class="form-control <?php $__errorArgs = ['secretaria_foto'];
$__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); ?>">
                                </div>

                                <h4 class="seo-info">SEO Informações</h4>
                                <div class="form-group">
                                    <label class="col-form-label">Meta Título </label>
                                    <input type="text" class="form-control <?php $__errorArgs = ['meta_titulo'];
$__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); ?>"
                                        name="meta_titulo" value="<?php echo e($secretarias->meta_titulo); ?>"
                                        placeholder="Campo preenchido automaticamente pelo sistema" disabled>
                                </div>

                                <div class="form-group">
                                    <label class="col-form-label">Meta Keywords </label>
                                    <textarea type="text" class="form-control <?php $__errorArgs = ['meta_keyword'];
$__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); ?>" name="meta_keyword"
                                        rows="2" value="<?php echo e($secretarias->meta_keyword); ?>"></textarea>
                                </div>

                                <div class="form-group">
                                    <label class="col-form-label">Meta Descrição </label>
                                    <textarea type="text" class="form-control <?php $__errorArgs = ['meta_descricao'];
$__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); ?>" name="meta_descricao"
                                        rows="2" value="<?php echo e($secretarias->meta_descricao); ?>"></textarea>
                                </div>

                                <br>
                                <div class="form-group">
                                    <button type="submit" class="btn btn-outline-success w-100"
                                        name="form1">Gravar</button>
                        </form>
                    </div>
                </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/secretarias/edit.blade.php ENDPATH**/ ?>