<?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 Düzenle</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-ekle">Yeni Ekle</a></li>
            <li class="breadcrumb-item active">Video Düzenle</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 Düzenle</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" value="<?= $row['baslik'] ?>">
            </div>
          </div>   
          <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">Video URL:</label>
            <div class="col-sm-8">
              <input type="text" class="form-control" name="video_url" placeholder="Başlık" value="<?= $row['video_url'] ?>">
            </div>
          </div>  
          <div class="form-group row">
            <label for="image" 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"><?= $row['aciklama'] ?></textarea>
           </div>
         </div> 
         
       </div>
       <!-- /.card-body --> 
       <div class="card-footer">
         <div class="col-lg-6">
          <p>Güncelleme Tarihi: <?= tarih('j F Y - H:i:s',$row['edit_date']); ?></p>
        </div>
        <input type="hidden" name="id" value="<?= $row['id'] ?>">
        <button type="submit" name="editvideo" class="btn btn-info">Güncelle</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>