 <div class="content-wrapper">
    <!-- Event Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark">Edit Event</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo base_url() ?>admin/admin/dashboard">Dashboard</a></li>
              <li class="breadcrumb-item"><a href="#">Main Page Setting</a></li>
              <li class="breadcrumb-item active">Edit Event</li>

            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.Event-header -->
    <!-- Main Event -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h3 class="card-title">Edit Event</h3>

                <div class="card-tools">
                  <a href="<?php echo base_url()?>/admin/main_page_setting/all_event" class="btn btn-primary btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> View All Event</a>
                </div>
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart('admin/main_page_setting/update_event/'.$event->page_event_id); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-md-3">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Event Language <span class="required">*</span></label>
                       <div class="col-sm-12">
                          <select class="form-control"  name="page_event_language" placeholder="Enter Project Title" required>
                            <option <?php if($event->page_event_language == 'en'){echo 'selected';}?> value="en">English</option>
                            <option <?php if($event->page_event_language == 'hi'){echo 'selected';}?> value="hi">Hindi</option>
                          </select>
                       </div>
                    </div>
                  </div>
                  <div class="col-md-9">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Event Heading <span class="required">*</span></label>
                       <div class="col-sm-12">
                          <input class="form-control"  name="page_event_title" placeholder="Enter Event Heading" required value="<?php echo $event->page_event_title ?>">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Event Short Description <span class="required">*</span></label>
                       <div class="col-sm-12">
                          <textarea class="form-control"  name="page_event_short_description" placeholder="Enter Event Description" required><?php echo $event->page_event_short_description ?></textarea>
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Event Description </label>
                       <div class="col-sm-12">
                          <textarea class="text-editor"  name="page_event_description" placeholder="Enter Event Description" ><?php echo $event->page_event_description ?></textarea>
                       </div>
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Event Location <span class="required">*</span></label>
                       <div class="col-sm-12">
                          <input type="text" class="form-control"  name="page_event_location" required placeholder="Enter Event Location" value="<?php echo $event->page_event_location ?>">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-6">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Event Date & Time <span class="required">*</span></label>
                       <div class="col-sm-12">
                          <input type="datetime-local" class="form-control"  name="page_event_date_time" required placeholder="Enter Event Location" value="<?php echo date('Y-m-d\TH:i', strtotime($event->page_event_date_time)); ?>">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Event Image </label>
                       <div class="col-sm-12">
                          <input type="file" class="form-control"  name="page_event_image">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <label for="inputEmail" class="col-sm-12 col-form-label">Preview Event Image </label>
                       <div class="col-sm-12">
                          <img src="<?php echo base_url() ?><?php echo $event->page_event_image ?>" width="100px">
                       </div>
                    </div>
                  </div>
                  <div class="col-md-12">
                    <div class="form-group">
                       <button name="submit" style="float: right" type="submit" class="btn btn-success">Update</button>
                    </div>
                  </div>

                   <?php echo form_close() ?>
                   

                  <!-- /.col -->
                </div>
                <!-- /.row -->
              </div>
              <!-- /.card-body -->
            </div>
          </div>
        </div>
            <!-- /.row -->
      </div><!--/. container-fluid -->
    </section>
    <!-- /.Event -->
  </div>
  <!-- /.Event-wrapper -->