

<?php $__env->startPush('plugin-styles'); ?>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col s12">
        <?php echo $__env->make('componentes._breadcrumbs', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>

    <div class="col-lg-12 grid-margin stretch-card">
        <div class="card">

            <div class="card-body">

                <h4 class="card-title">Editar solucao home</h4>
                <p class="card-description"> </p>

                <?php if($errors->any()): ?>
                <div class="alert alert-danger">
                    <ul>
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li><?php echo e($error); ?></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </div><br />
                <?php endif; ?>

                <div class="auto-form-wrapper">
                    <form action="<?php echo e(route('solucaoHome.update', $obj->id)); ?>" method="post" enctype="multipart/form-data">
                        <?php echo e(csrf_field()); ?>

                        <?php echo e(method_field('PUT')); ?>


                        <input type="hidden" name="old_image" value="<?php echo e(isset($obj->image) ? $obj->image : ''); ?>">

                        <div class="row clearfix">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <select name="solucao_id" class="form-control" require>
                                            <option value="">Selecione um solucao</option>
                                            <?php if($solucaos): ?>
                                                <?php $__currentLoopData = $solucaos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sol): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($sol->id); ?>" <?php echo e(($sol->id == @$obj->solucao->id) ? 'selected' : ''); ?>><?php echo e($sol->name); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row clearfix">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <div class="input-field">
                                        <select name="language_id" id="language_id" class="form-control" required>
                                            <option value="">Selecione um Idioma</option>
                                            <option value="pt" <?php echo e(($obj->language_id == 'pt') ? 'selected' : ''); ?>>Português</option>
                                            <option value="es" <?php echo e(($obj->language_id == 'es') ? 'selected' : ''); ?>>Espanhol</option>
                                            <option value="en" <?php echo e(($obj->language_id == 'en') ? 'selected' : ''); ?>>Inglês</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="row clearfix">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <input type="file" name="image" id="image" class="form-control">
                                    </div>
                                    <p>Tamanho da imagem: 1920 x 1066px</p>
                                </div>
                            </div>
                        </div>
                        <?php if( $obj->image != '' ): ?>
                        <div class="row clearfix">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <div class="input-group content-img-images">
                                    <img src="<?php echo e(isset($obj->image) ?   url('storage/solucaoHome/'.$obj->image) : ''); ?>"  width="200px"  />
                                    <a title="Remover Imagem" class="btn btn-icons btn-inverse-danger bt-excluir-img" data-token="<?php echo e(csrf_token()); ?>" data-id="<?php echo e($obj->id); ?>" data-pagina="solucao_homes" data-campo="image"><i class="mdi mdi-delete"></i></a>    
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php endif; ?>


                        
                        <div class="row clearfix">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <input type="text" name="titulo" id="titulo" class="validate form-control"
                                            value="<?php echo e(isset($obj->titulo) ?  $obj->titulo : old('titulo')); ?>"
                                            Placeholder="Título" >
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="row clearfix">
                            <div class="col-sm-12">
                                <div class="form-group">
                                    <p>Descrição</p>
                                    <div class="input-group">
                                        <textarea name="description" id="description" class="description"><?php echo e(isset($obj->description) ?  $obj->description : old('description')); ?></textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="row clearfix">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <input type="text" name="btncta" id="btncta" class="validate form-control"
                                            value="<?php echo e(isset($obj->btncta) ?  $obj->btncta : old('btncta')); ?>"
                                            Placeholder="Botão Cta" >
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <input type="text" name="btnlinkcta" id="btnlinkcta" class="validate form-control"
                                            value="<?php echo e(isset($obj->btnlinkcta) ?  $obj->btnlinkcta : old('btnlinkcta')); ?>"
                                            Placeholder="Link Botão Cta" >
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row clearfix">
                            <div class="col-sm-2">
                                <button class="btn btn-primary submit-btn btn-block">Atualizar</button>
                            </div>
                        </div>

                    </form>
                </div>

            </div>
        </div>

    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('plugin-scripts'); ?>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('custom-scripts'); ?>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/site.apoiocotacoes.com.br/apoio/resources/views/admin/solucaoHome/editar.blade.php ENDPATH**/ ?>