<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><?php echo lang_key('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"><?php echo lang_key('package_type');?>:</label>
		          <div class="col-sm-4 col-lg-5 controls">
		            <?php $options = array('post_package','featured_package','both_package');?>
		            <select name="type" class="form-control">
		                <option value=""><?php echo lang_key('select_package');?></option>
		                <?php 
		                  $v = (set_value('type')!='')?set_value('type'):$post->type;
		                  foreach($options as $row) 
		                  {
		                    $sel = ($v==$row)?'selected="selected"':'';
		                  ?>
		                <option value="<?php echo $row;?>" <?php echo $sel;?>><?php echo lang_key($row);?></option>
		                <?php
		                  }
		                ?>

		            </select>
		            <?php echo form_error('type'); ?>
		          </div>
		        </div>

				<div class="form-group">
					<label class="col-sm-3 col-lg-2 control-label"><?php echo lang_key('title');?>:</label>
					<div class="col-sm-4 col-lg-5 controls">
						<input type="text" name="title" value="<?php echo $post->title;?>" placeholder="<?php echo lang_key('title');?>" class="form-control input-sm" >
						<?php echo form_error('title'); ?>
					</div>
				</div>

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

		        <div class="form-group">
		          <label class="col-sm-3 col-lg-2 control-label"><?php echo lang_key('price');?> <?php echo get_currency_icon(get_settings('paypal_settings','currency','USD')).'('.get_settings('paypal_settings','currency','USD').')';?>:</label>
		          <div class="col-sm-4 col-lg-5 controls">
		            <input type="text" name="price" value="<?php echo $post->price;?>" placeholder="<?php echo lang_key('price');?>" class="form-control input-sm" >
		            <?php echo form_error('price'); ?>
		          </div>
		        </div>

		        <div class="form-group">
		          <label class="col-sm-3 col-lg-2 control-label"><?php echo lang_key('expirtion_time');?>:</label>
		          <div class="col-sm-4 col-lg-5 controls">
		            <input type="text" name="expiration_time" value="<?php echo $post->expiration_time;?>" placeholder="<?php echo lang_key('expirtion_time');?>" class="form-control input-sm" >
		            <?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> <?php echo lang_key('update_package');?></button>
					</div>
				</div>


			</form>

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