

<?php $__env->startSection('title', 'Editando Secretário'); ?>

<?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 Secretário</h4>
                    <span>Editando Secretário no Sistema</span>
                    <a class="btn btn-outline-primary btn-block d-grid gap-2" type="button"
                        href="<?php echo e(route('secretarios.index')); ?>" role="button">Ver todos</a>
                </div>
                <div class="card">
                    <div class="card-body">
                        <form action="<?php echo e(route('secretarios.update', $secretario->id)); ?>" method="POST"
                            class="form-horizontal" enctype="multipart/form-data">
                            <?php echo method_field('PUT'); ?>
                            <?php echo csrf_field(); ?>
                            <div class="box box-info">
                                <div class="form-group">
                                    <label class="col-form-label">Nome <span>*</span></label>
                                    <input type="text" name="nome" value="<?php echo e($secretario->nome); ?>"
                                        class="form-control <?php $__errorArgs = ['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="row">
                                    <div class="col-md-6">
                                        <label class="col-form-label">Designação </label>
                                        <select name="id_cargo"
                                            class="form-control <?php $__errorArgs = ['id_cargo'];
$__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 = $cargos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cargo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($cargo->id); ?>"
                                                    <?php echo e($secretario->id_cargo == $cargo->id ? 'selected' : ''); ?>>
                                                    <?php echo e($cargo->descricao); ?>

                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>
                                    </div>
                                    <div class="col-md-6">
                                        <label class="col-form-label">Foto principal <span>*</span></label>
                                        <input type="file" name="foto" value="<?php echo e($secretario->foto); ?>"
                                            class="form-control <?php $__errorArgs = ['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>
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <label class="col-form-label">Detalhes </label>
                                        <input type="text" name="detalhes" value="<?php echo e($secretario->detalhes); ?>"
                                            class="form-control <?php $__errorArgs = ['detalhes'];
$__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="col-md-6">
                                        <label class="col-form-label">Facebook </label>
                                        <input type="text" name="facebook" value="<?php echo e($secretario->facebook); ?>"
                                            class="form-control <?php $__errorArgs = ['facebook'];
$__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="row">
                                    <div class="col-md-6">
                                        <label class="col-form-label">Instagram </label>
                                        <input type="text" name="instagram" value="<?php echo e($secretario->instagram); ?>"
                                            class="form-control <?php $__errorArgs = ['instagram'];
$__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-6">
                                        <label class="col-form-label">Twitter </label>
                                        <input type="text" name="twitter" value="<?php echo e($secretario->twitter); ?>"
                                            class="form-control <?php $__errorArgs = ['twitter'];
$__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>

                            <div class="form-row">
                                <div class="form-group col-md-1">
                                    <label class="col-form-label">Ativo</label><br>
                                    <label class="radio-inline">
                                        <input type="radio" name="status" value="S" checked>Sim
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="status" value="N">Não
                                    </label>
                                </div>
                            </div>
                            <h3 class="seo-info">SEO Informações</h3>
                            <div class="form-group">
                                <label class="col-form-label">Meta Título </label>
                                <input type="text" class="form-control <?php $__errorArgs = ['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="titulo" value="<?php echo e($secretario->titulo); ?>">
                            </div>
                            <div class="form-group">
                                <label class="col-form-label">Meta Keywords </label>
                                <textarea type="text" class="form-control <?php $__errorArgs = ['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="keyword" rows="2"
                                    value="<?php echo e($secretario->keyword); ?>"></textarea>
                            </div>
                            <div class="form-group">
                                <label class="col-form-label">Meta Descrição </label>
                                <textarea type="text" class="form-control <?php $__errorArgs = ['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="descricao" rows="2"
                                    value="<?php echo e($secretario->descricao); ?>"></textarea>
                            </div>
                            <div class="form-group">
                                <button type="submit" class="btn btn-outline-success btn-sm btn-block"
                                    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/secretarios/edit.blade.php ENDPATH**/ ?>