<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
   <section class="content-header">
      <div class="container-fluid">
         <div class="row mb-2">
            <div class="col-sm-6">
               <h4><?php echo htmlspecialchars($title) ?></h4>
            </div>
            <div class="col-sm-6">
               <ol class="breadcrumb float-sm-right">
                  <li class="breadcrumb-item"><a href="<?php echo admin_url() ?>dashboard">Home</a></li>
                  <li class="breadcrumb-item active"><?php echo htmlspecialchars($title) ?></li>
               </ol>
            </div>
         </div>
      </div>
      <!-- /.container-fluid -->
   </section>
   <?php
    $errors = $this->session->userdata('errors');
    if (isset($errors)) {
        ?>
        <script>
            swal ( "Oops" ,  "<?php echo $errors ?>" ,  "error" )
        </script>
        <?php echo $errors ?>
        <?php
        $this->session->unset_userdata('errors');
    }
    $error = $this->session->userdata('error');
    if (isset($error)) {
        ?>
         <script>
            swal ( "Oops" ,  "<?php echo $error ?>" ,  "error" )
        </script>
        <?php
        $this->session->unset_userdata('error');
    }
    $success = $this->session->userdata('success');
    if (isset($success)) {
        ?>
         <script>
            swal({
          title: "Done!",
          text: "<?php echo $success ?>",
          icon: "success",
        });
        </script>
        <?php
        $this->session->unset_userdata('success');
    }
    ?>
   <section class="content">
      <div class="container">
         <div class="row"> 
            <div class="col-md-12">
               <div class="container-fluid">
                  <?php echo form_open_multipart('admin/admin_controller/send_email_all_subscribers_post'); ?>
                  <div class="card card-default">
                     <div class="card-header">
                     <h3 class="card-title">Send Email</h3>
                  </div>
                     <div class="card-body">
                        <div class="tab-content">
                           <!--Application Details-->
                           <div class="tab-pane active" id="general_setting">
                              
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Subject <span style="color:red">*</span></label>
                                 <div class="col-sm-12">
                                    <input type="text" name="subject" class="form-control" id="inputName" placeholder="Enter Email Subject" value="<?php echo set_value('subject');?>" required="required">
                                 </div>
                              </div>
                              <div class="form-group row">
                                 <label for="inputName2" class="col-sm-12 col-form-label">Email Content</label>
                                 <div class="col-sm-12">
                                    <textarea class="text-editor" id="inputName2" placeholder="Enter Page Keyword" name="content" value="<?php echo set_value('content');?>"></textarea>
                                 </div>
                              </div>
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Upload PDF </label>
                                 <div class="col-sm-12">
                                    <input type="file" name="file" class="form-control" id="inputName" placeholder="Enter Email Subject" value="<?php echo set_value('subject');?>">
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                     <div class="form-group row">
                        <div class="offset-sm-2 col-sm-10">
                           <button style="float: right;" type="submit" class="btn btn-success setting-submit" name="submit">Send</button>
                        </div>
                     </div>
                     <?php echo form_close(); ?>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   
</section>
</div>
<!-- /.content-wrapper -->
<?php $this->load->view('admin/extra_for_alart'); ?>
