<?php $__env->startSection('content'); ?>
    <section class="section">
        <div class="section-header">
            <h3 class="page__heading">Editar Episodio</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($episode, ['method' => 'PATCH', 'route' => ['episodes.update', $episode->id]]); ?>


                                <div class="form-group">
                                    <label>Título</label>
                                    <input type="text" name="title" required class="form-control" value="<?php echo e($episode->title); ?>">
                                </div>

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

                                <div class="form-group">
                                    <label>Link Vimeo</label>
                                    <input type="text" name="link" required class="form-control" value="<?php echo e($episode->link); ?>">
                                </div>

                                <div class="form-group">
                                    <label>Temporada</label>
                                    <select name="season" required class="form-control">
                                        <option <?php if($episode->season == 1): ?> selected <?php endif; ?> value="1">1</option>
                                        <option <?php if($episode->season == 2): ?> selected <?php endif; ?> value="2">2</option>
                                        <option <?php if($episode->season == 3): ?> selected <?php endif; ?> value="3">3</option>
                                    </select>
                                </div>

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

                                <div class="form-group">
                                    <label for="inputFirstname">Mostrar en Home:</label>
                                    <label class="selectgroup-item">
                                        <input type="radio" name="home" value="1" <?php if($episode->home == 1): ?> checked <?php endif; ?> class="selectgroup-input">
                                        <span class="selectgroup-button">SÍ</span>
                                    </label>
                                    <label class="selectgroup-item">
                                        <input type="radio" name="home" value="0" <?php if($episode->home == 0): ?> checked <?php endif; ?> class="selectgroup-input">
                                        <span class="selectgroup-button">NO</span>
                                    </label>
                                </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/episodes/edit.blade.php ENDPATH**/ ?>