<div class="row">	
  <div class="col-md-12">
  	<?php echo $this->session->flashdata('msg');?>
    <div class="box">
      <div class="box-title">
        <h3><i class="fa fa-bars"></i>Edit Package</h3>
        <div class="box-tool">
          <a href="#" data-action="collapse"><i class="fa fa-chevron-up"></i></a>

        </div>
      </div>
      <div class="box-content">
      		
      		<form class="form-horizontal" id="editpackage" action="<?php echo site_url('admin/package/updatepackage');?>" method="post">
      			
      			<input type="hidden" name="id" value="<?php echo $post->id;?>"/>
				
				<div class="form-group">
					<label class="col-sm-3 col-lg-2 control-label">Title:</label>
					<div class="col-sm-4 col-lg-5 controls">
						<input type="text" name="title" value="<?php echo $post->title;?>" placeholder="Package Title" class="form-control input-sm" >
						<span class="help-inline">&nbsp;</span>
						<?php echo form_error('title'); ?>
					</div>
				</div>

				<div class="form-group">
		          <label class="col-sm-3 col-lg-2 control-label">Description:</label>
		          <div class="col-sm-4 col-lg-5 controls">
		            <textarea name="description" value="" placeholder="Package Description" class="form-control input-sm"><?php echo $post->description!=''?$post->description:'';?></textarea>
		            <span class="help-inline">&nbsp;</span>
		            <?php echo form_error('description'); ?>
		          </div>
		        </div>

		        <div class="form-group">
		          <label class="col-sm-3 col-lg-2 control-label">Price ($):</label>
		          <div class="col-sm-4 col-lg-5 controls">
		            <input type="text" name="price" value="<?php echo $post->price;?>" placeholder="Package Price" class="form-control input-sm" >
		            <span class="help-inline">&nbsp;</span>
		            <?php echo form_error('price'); ?>
		          </div>
		        </div>

		        <div class="form-group">
		          <label class="col-sm-3 col-lg-2 control-label">Maximum post by user:</label>
		          <div class="col-sm-4 col-lg-5 controls">
		            <input type="text" name="max_post" value="<?php echo $post->max_post;?>" placeholder="Maximum post per day" class="form-control input-sm" >
		            <span class="help-inline">&nbsp;</span>
		            <?php echo form_error('max_post'); ?>
		          </div>
		        </div>

		        <div class="form-group">
		          <label class="col-sm-3 col-lg-2 control-label">Expiration Time (days):</label>
		          <div class="col-sm-4 col-lg-5 controls">
		            <input type="text" name="expiration_time" value="<?php echo $post->expiration_time;?>" placeholder="Package Expiration Time (days)" class="form-control input-sm" >
		            <span class="help-inline">&nbsp;</span>
		            <?php echo form_error('expiration_time'); ?>
		          </div>
		        </div>

				<div class="form-group">
					<label class="col-sm-3 col-lg-2 control-label">&nbsp;</label>
					<div class="col-sm-4 col-lg-5 controls">						
						<button class="btn btn-primary" type="submit"><i class="fa fa-check"></i> Update </button>
					</div>
				</div>


			</form>

	  </div>
    </div>
  </div>
</div>