<div class="row">
    <div class="col-sm-12">
        <div class="panel panel-bd lobidrag">
            <div class="panel-heading">
                <div class="panel-title">
                    <h4><?php echo display('service_edit') ?> </h4>
                </div>
            </div>
            <?php echo form_open_multipart('service/service/service_update',array('class' => 'form-vertical', 'id' => 'service_update'))?>
            <div class="panel-body">

                <div class="form-group row">
                    <label for="service_name" class="col-sm-3 col-form-label"><?php echo display('service_name') ?> <i
                            class="text-danger">*</i></label>
                    <div class="col-sm-6">
                        <input class="form-control" name="service_name" id="service_name" type="text"
                            placeholder="<?php echo display('service_name') ?>" required=""
                            value="<?php echo $service_name?>">
                    </div>
                </div>

                <div class="form-group row">
                    <label for="charge" class="col-sm-3 col-form-label"><?php echo display('charge') ?> <i
                            class="text-danger">*</i></label>
                    <div class="col-sm-6">
                        <input class="form-control" name="charge" id="charge" type="text"
                            placeholder="<?php echo display('charge') ?>" required="" value="<?php echo $charge?>">
                    </div>
                </div>
                
                <div class="form-group row" <?php if($vattaxinfo->fixed_tax !=1){echo 'hidden';}?>>
                    <label for="service_vat" class="col-sm-3 col-form-label"><?php echo display('service_vat').' %' ?>
                        </label>
                    <div class="col-sm-6">
                        <input class="form-control" name="service_vat" id="service_vat" type="text"
                            placeholder="<?php echo display('service_vat').' %' ?>" value="<?php echo $service_vat?>">
                    </div>
                </div>
               
                <div class="form-group row">
                    <label for="description" class="col-sm-3 col-form-label"><?php echo display('description') ?> <i
                            class="text-danger"></i></label>
                    <div class="col-sm-6">
                        <textarea class="form-control" name="description" id="description"
                            placeholder="<?php echo display('description') ?>"><?php echo $description?></textarea>
                    </div>
                </div>
                <?php 
                        $i=0;
                        foreach ($taxfield as $txs) {
                            $tax = 'tax'.$i;
                            ?>
                <div class="form-group row" <?php if($vattaxinfo->dynamic_tax !=1){ echo 'hidden';}?>>
                    <label for="tax" class="col-sm-3 col-form-label"><?php echo $txs['tax_name']; ?> <i
                            class="text-danger"></i></label>
                    <div class="col-sm-6">
                        <input type="text" name="tax<?php echo $i;?>" class="form-control"
                        value="<?php echo isset($servicedetails[0][$tax]) ? number_format($servicedetails[0][$tax] * 100, 2, '.', ',') : '0.00'; ?>"
                        >
                    </div>
                    <div class="col-sm-1"> <i class="text-success">%</i></div>
                </div>
                <?php $i++;} 

                        ?>

                <input type="hidden" value="<?php echo $service_id?>" name="service_id">

                <div class="form-group row">
                    <label for="example-text-input" class="col-sm-4 col-form-label"></label>
                    <div class="col-sm-6">
                        <input type="submit" id="add-service" class="btn btn-success btn-large" name="add-service"
                            value="<?php echo display('save_changes') ?>" />
                    </div>
                </div>
            </div>
            <?php echo form_close()?>
        </div>
    </div>
</div>