<!-- Main Content -->

<div class="page-wrapper">

<div class="container-fluid pt-25">

   <div class="row">

      <div class="alert alert-success alert-dismissible" role="alert" <?php if($this->session->flashdata('message')==''){ ?> style="display:none" <?php } ?> >

         <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>

         <?php echo $this->session->flashdata('message'); ?>

      </div>

      <div class="alert alert-warning alert-dismissible" role="alert" <?php if($this->session->flashdata('emessage')==''){ ?> style="display:none" <?php } ?> >

         <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>

         <?php echo $this->session->flashdata('emessage'); ?>

      </div>

   </div>

   <!-- Row -->

   <div class="row">

      <div class="col-sm-8 col-md-offset-2">

         <div class="panel panel-default card-view">

            <div class="panel-heading">

               <div class="pull-left">

                  <h6 class="panel-title txt-dark">Add Learning Resource</h6>

               </div>

               <div class="clearfix"></div>

            </div>

            <div class="panel-wrapper collapse in">

               <div class="panel-body">

                  <div class="form-wrap">

                     <form id="addTestimonialFrom" class="form-horizontal" action="<?php echo base_url(A."/addLR"); ?>" enctype="multipart/form-data" method='post'>

                        <input type="hidden" name="name" value="">

                        <div class="row">

                           <div class="col-md-12">

                              <div class="form-group">
                                 <label class="col-sm-12">Title:</label>
                                 <div class="col-sm-12">
                                    <input type="text" name="title" class="form-control" placeholder="Enter Title" required>
                                 </div>
                              </div>

                              <div class="form-group">
                                 <label class="col-sm-12">Description:</label>
                                 <div class="col-sm-12">
                                    <textarea class="form-control" name="description" required></textarea>
                                 </div>
                              </div>

                              <div class="form-group">
                                 <label class="col-sm-12">Image/PDF:</label>
                                 <div class="col-sm-12">
                                    <input type="file" name="image" class="form-control">
                                 </div>
                              </div>

                              <div class="form-group mb-0">

                                 <div class="col-sm-12">

                                    <button type="submit" name="addcategory" class="btn btn-success btn-anim pull-right"><i class="icon-rocket"></i><span class="btn-text">Submit</span></button>

                                 </div>

                              </div>

                           </div>

                        </div>

                     </form>

                  </div>

               </div>

            </div>

         </div>

      </div>

   </div>

   <!-- /Row -->

</div>