

<?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 Sessão Números</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('numeros.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-12">
                                <div class="form-group">
                                    <div class="input-group">
                                        <input type="text" name="name" id="name" class="validate form-control"
                                            value="<?php echo e(isset($obj->id) ?  $obj->name : old('name')); ?>"
                                            Placeholder="Alt Ícone" >
                                    </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>
                                </div>
                            </div>

                        </div>
                        <?php if( $obj->image != '' ): ?>
                        <div class="row clearfix">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <div class="input-group">
                                        <?php if($obj->image): ?> 
                                            <img src="<?php echo e(url('storage/sessaonumeros/'.$obj->image)); ?>" width="100" />
                                        <?php endif; ?>    
                                    </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="numero" id="numero" class="validate form-control"
                                            value="<?php echo e(isset($obj->id) ?  $obj->numero : old('numero')); ?>"
                                            Placeholder="Número" >
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row clearfix">
                            <div class="col-sm-12">
                                <div class="form-group">
                                    <div class="input-group">
                                        <input type="text" name="description" id="description" class="validate form-control"
                                            value="<?php echo e(isset($obj->id) ?  $obj->description : old('description')); ?>"
                                            Placeholder="Descrição" required>
                                    </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/sessaonumeros/editar.blade.php ENDPATH**/ ?>