<?php $__env->startSection('css'); ?>

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

<?php $__env->startSection('content'); ?>
<div class="container-fluid">
  <div class="fade-in">
    <div class="row">
      <div class="col-sm-12">
        <div class="card">
          <div class="card-header"><h4>Upload new Video</h4></div>
            <div class="card-body">
                <?php if($errors->any()): ?>
                    <div class="alert alert-danger" role="alert">
                        <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>
                <?php endif; ?>
                <?php if(Session::has('message')): ?>
                    <div class="alert alert-success" role="alert"><?php echo e(Session::get('message')); ?></div>
                <?php endif; ?>
                <form method="POST" action="<?php echo e(route('videos.store')); ?>" enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <table class="table table-bordered datatable">
                        <tbody>
                            <tr>
                                <th>
                                    Title
                                </th>
                                <td>
                                    <input class="form-control" name="title" id="title" type="text" value="<?php echo e(old('title')); ?>" required>
                                </td>
                            </tr>
                            <tr>
                                <th>
                                    Video File <small>(Max size: 10 mb)</small>
                                </th>
                                <td>
                                    <input name="uploaded_video" type="file" accept="video/mp4,video/x-m4v,video/*" required>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <button class="btn btn-primary" type="submit">Save</button>
                    <a class="btn btn-primary" href="<?php echo e(route('videos.index')); ?>">Return</a>
                </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

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

<?php $__env->startSection('javascript'); ?>

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

<?php echo $__env->make('dashboard.base', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/deve/public_html/xtreme_laravel/resources/views/dashboard/videos/create.blade.php ENDPATH**/ ?>