<?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>Sayfa 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="sayfa-listele">Sayfa Listele</a></li>
            <li class="breadcrumb-item active">Yeni 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">Sayfa 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="page" placeholder="Başlık" required="">
            </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="detail" required=""></textarea>
           </div>
         </div> 

         <div class="form-group row">
          <label for="inputEmail3" class="col-sm-2 col-form-label">Seo Title</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="seo_title" placeholder="Seo Title" required="">
          </div>
        </div> 
        <div class="form-group row">
          <label for="inputEmail3" class="col-sm-2 col-form-label">Seo Keywords</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="seo_keywords" placeholder="Seo Keywords" required="">
          </div>
        </div> 
        <div class="form-group row">
          <label for="inputEmail3" class="col-sm-2 col-form-label">Seo Description</label>
          <div class="col-sm-8">
            <input type="text" class="form-control" name="seo_description" placeholder="Seo Description" required="">
          </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" required="">  
            <p style="margin-left:10px;font-size:13px;margin-top:5px;">Tavsiye edilen görselin boyutları 400x400 px olmalıdır.</p>
          </div> 
        </div> 
      </div>
      <!-- /.card-body --> 
      <div class="card-footer">
        <button type="submit" name="sayfaekle" class="btn btn-info"><i class="fas fa-save"></i> Kaydet</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>