<?php $__env->startSection('content'); ?>
    <section class="section">
        <div class="section-header">
            <h3 class="page__heading">Editar Temporada</h3>
        </div>
        <div class="section-body">
            <div class="row">
                <div class="col-lg-12">
                    <div class="card">
                        <div class="card-body">

                            <?php if($errors->any()): ?>
                                <div class="alert alert-dark alert-dismissible fade show" role="alert">
                                    <strong>Revise los campos ingresados</strong>
                                    <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <span class="badge badge-danger"><?php echo e($error); ?></span>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                        <span aria-hidden="true">&times;</span>
                                    </button>
                                </div>
                            <?php endif; ?>

                            <?php echo Form::model($season, ['method' => 'PATCH', 'route' => ['seasons.update', $season->id]]); ?>


                                <div class="form-group">
                                    <label>Temporada</label>
                                    <select name="number" required class="form-control">
                                        <option <?php if($season->number == 1): ?> selected <?php endif; ?> value="1">1</option>
                                        <option <?php if($season->number == 2): ?> selected <?php endif; ?> value="2">2</option>
                                        <option <?php if($season->number == 3): ?> selected <?php endif; ?> value="3">3</option>
                                        <option <?php if($season->number == 4): ?> selected <?php endif; ?> value="4">4</option>
                                        <option <?php if($season->number == 5): ?> selected <?php endif; ?> value="5">5</option>
                                        <option <?php if($season->number == 6): ?> selected <?php endif; ?> value="6">6</option>
                                        <option <?php if($season->number == 7): ?> selected <?php endif; ?> value="7">7</option>
                                        <option <?php if($season->number == 8): ?> selected <?php endif; ?> value="8">8</option>
                                        <option <?php if($season->number == 9): ?> selected <?php endif; ?> value="8">9</option>
                                        <option <?php if($season->number == 10): ?> selected <?php endif; ?> value="10">10</option>
                                    </select>
                                </div>

                                <div class="form-group">
                                    <label>Descripción</label>
                                    <input type="text" name="description" required class="form-control" value="<?php echo e($season->description); ?>">
                                </div>

                                <div class="form-group">
                                    <label>Estado</label>
                                    <select name="status" required class="form-control">
                                        <option <?php if($season->status == 1): ?> selected <?php endif; ?> value="1">Habilitado</option>
                                        <option <?php if($season->status == 0): ?> selected <?php endif; ?> value="0">Deshabilitado</option>
                                    </select>
                                </div>

                                <div class="form-group">
                                    <button type="submit" class="btn btn-primary">Guardar</button>
                                </div>

                            <?php echo Form::close(); ?>

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





<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\malasangrebar-laravel\resources\views/admin/seasons/edit.blade.php ENDPATH**/ ?>