<?php require admin_view('include/header'); ?>
<!-- summernote -->
<link rel="stylesheet" href="<?= admin_public_url(); ?>plugins/summernote/summernote-bs4.css">
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <div class="container-fluid">
      <div class="row mb-2">
        <div class="col-sm-6">
          <h1>Video Ekle</h1>
        </div>
        <div class="col-sm-6">
          <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item"><a href="index">Görsel Panel</a></li>
            <li class="breadcrumb-item"><a href="video-listele">Video Listele</a></li>
            <li class="breadcrumb-item active">Video Ekle</li>
          </ol>
        </div>
      </div>
    </div><!-- /.container-fluid -->
  </section>

  <!-- Main content -->
  <section class="content">

    <!-- Default box -->
    <div class="card card-info">
      <div class="card-header">
        <h3 class="card-title">Video Ekle</h3>
      </div>
      <!-- /.card-header -->
      <!-- form start -->
      <form action="" method="POST" enctype="multipart/form-data">
        <div class="card-body">  
          <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">Başlık:</label>
            <div class="col-sm-8">
              <input type="text" class="form-control" name="baslik" placeholder="Başlık">
            </div>
          </div>  
              <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">URL:</label>
            <div class="col-sm-8">
              <input type="text" class="form-control" name="video_url" placeholder="Video Link">
            </div>
          </div>
            <div class="form-group row">
          <label for=".png" class="col-sm-2 col-form-label">Resim</label>
          <div class="col-sm-8"> 
            <input type="file" class="form-control" name="image">  
            <p style="margin-left:10px;font-size:13px;margin-top:5px;">Tavsiye edilen görselin boyutları 2000x750 px olmalıdır.</p>
          </div> 
        </div> 
          <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">Açıklama:</label>
            <div class="col-sm-8"> 
             <textarea class="textarea" name="aciklama"></textarea>
           </div>
         </div>  
         
      </div>
      <!-- /.card-body --> 
      <div class="card-footer">
        <button type="submit" name="videoekle" class="btn btn-info">Video Ekle</button> 
      </div>
      <!-- /.card-footer -->
    </form>
  </div>
  <!-- /.card -->

</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
    <?php require admin_view('include/footer'); ?>
<!-- Summernote -->
<script src="<?= admin_public_url(); ?>plugins/summernote/summernote-bs4.min.js"></script>
<script>
  $(function () {
    // Summernote
    $('.textarea').summernote()
  })
</script>