<?php $__env->startSection('content'); ?>
    <section class="section">
        <div class="section-header">
            <h3 class="page__heading">Nuevo 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::open(array('route' => 'episodes.store', 'method' => 'POST')); ?>


                                <div class="form-group">
                                    <label>Título</label>
                                    <input type="text" name="title" required class="form-control">
                                </div>

                                <div class="form-group">
                                    <label>Descripción</label>
                                    <input type="text" name="description" required class="form-control">
                                </div>

                                <div class="form-group">
                                    <label>Link Vimeo</label>
                                    <input type="text" name="link" required class="form-control">
                                </div>

                                <div class="form-group">
                                    <label>Temporada</label>
                                    <select name="season" required class="form-control">
                                        <?php $__currentLoopData = $seasons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $season): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($season->id); ?>"><?php echo e($season->number); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>

                                <div class="form-group">
                                    <label>Estado</label>
                                    <select name="status" required class="form-control">
                                        <option value="1">Habilitado</option>
                                        <option 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" class="selectgroup-input">
                                            <span class="selectgroup-button">SÍ</span>
                                        </label>
                                        <label class="selectgroup-item">
                                            <input type="radio" name="home" value="0" checked 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/create.blade.php ENDPATH**/ ?>