<?php
$exam_standard_options = array();
foreach($exam_standards as $standard){
    $exam_standard_options[$standard->exam_standard_ID] = $standard->standard_name;
}

?>
<br>
<div class="row">
    <div class="col-md-offset-2 col-md-5">
        <div class="panel panel-default">
            <div class="panel-body">
                <?php echo form_open('subscription_packs/update'); ?>
                <?php echo hidden_input(array('name'=>'subscription_pack_id','value'=>$subscription_pack->subscription_pack_ID)); ?>
                <?php echo form_input(array('name'=>'subscription_pack_name','label'=>'Subscription Pack Name :','value'=>$subscription_pack->subscription_pack_name)); ?>
                <?php echo form_input(array('name'=>'subscription_amount','label'=>'Subscription Amount :','value'=>$subscription_pack->subscription_amount)); ?>
                <?= form_multiselect(array(
                    'name'      =>'exam_standards[]',
                    'label'     => 'Exam Standards',
                    'options'   => $exam_standard_options,
                    'selected'  => explode(',',$subscription_pack->exam_standards)
                    ))?>
                <?php echo form_input(array('name'=>'duration','label'=>'Duration :','value'=>$subscription_pack->duration)); ?>
				<?= form_input(array('name'=>'no_of_exams','label'=>'No. of Exams in the pack:','value'=>$subscription_pack->no_of_exams)); ?>
                <?php echo form_submit(array('value' => 'Save', 'class' => 'btn-success')); ?>
                <?php echo form_close(); ?>
            </div>
        </div>
    </div>
</div>