<!-- 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>Send Email</h4>
            </div>
            <div class="col-sm-6">
               <ol class="breadcrumb float-sm-right">
                  <li class="breadcrumb-item"><a href="#">Email</a></li>
                  <li class="breadcrumb-item active">Send Email</li>
               </ol>
            </div>
         </div>
      </div>
      <!-- /.container-fluid -->
   </section>

   <section class="content">
      <div class="container">
         <div class="row"> 
            <div class="col-md-12 col-lg-12">
               <div class="container-fluid">
                  <div class="card card-default">
                     <div class="card-header">
                        <h3 class="card-title">Send New Email</h3>
                     </div>
                     <?php echo form_open_multipart('admin/email/send_new_email'); ?>
                     <div class="card-body">
                        <div class="row">
                           <div class="col-sm-12">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Email Subject <span style="color:red">*</span></label>
                                 <div class="col-sm-12">
                                    <input type="text" name="email_subject" class="form-control" placeholder="Enter Email Subject" required="required">
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-12">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Email Content</label>
                                 <div class="col-sm-12">
                                    <textarea type="text" name="email_content" class="form-control text-editor" placeholder="Enter Email Subject" ></textarea>
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-12 d-none">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Email Subject <span style="color:red">*</span></label>
                                 <div class="col-sm-12">
                                    <input type="text" name="email_id" class="form-control" placeholder="Enter Email Subject" required="required" value="<?php echo $email->user_email ?>">
                                 </div>
                              </div>
                           </div>
                           <div class="col-sm-12 d-none">
                              <div class="form-group row">
                                 <label for="inputName" class="col-sm-12 col-form-label">Email Subject <span style="color:red">*</span></label>
                                 <div class="col-sm-12">
                                    <input type="text" name="email_i_d" class="form-control" placeholder="Enter Email Subject" required="required" value="<?php echo $i_d ?>">
                                 </div>
                              </div>
                           </div>
                        </div>
                        <div class="form-group row" id="submit_button-2">
                           <div class="offset-sm-0 col-sm-10">
                              <button onclick="return confirm('Are you Sure')"  type="submit" class="btn btn-success setting-submit" name="submit">Send Email</button>
                           </div>
                        </div>   
                     </div>
                     <?php echo form_close(); ?>
                  </div>
               </div>
            </div>
          </div>
         </div>
      </div>
   </div>
</section>
</div>

<style type="text/css">
#alert3
{
   display: none;
}
</style>