<script type="text/javascript" src="<?php echo base_url();?>assets/js/service.js"></script>
<aside class="right-side">
    <section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">Service Edit</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
    <?php $general = get_general_setting();?>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <form action="<?php echo $form_action;?>" method="post" name="service_form" enctype="multipart/form-data" method="post">    
                    <input type="hidden" name="hidden_service_id" value="<?php echo $service->id;?>" />    
                    <div class="box box-danger">
                        <div class="box-body">
                            <ul class="error_container"></ul>
                            <div class="col-xs-12">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label>Menu Name<span class="required">*</span></label>
                                        <select name="menu_id" id="menu_id" class="form-control select2 menu_id" data-placeholder="Select Menu name">
                                            <option value="">Select Menu Name</option>
                                            <?php foreach ($service_menus as $key => $value) {?>
                                                <option value="<?php echo $value->id; ?>" <?php echo ($value->id == $service->menu_name) ? 'selected' : '';?>><?php echo $value->service_name; ?></option>
                                            <?php } ?>
                                        </select>
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Name<span class="required">*</span></label>
                                        <input type="text" class="form-control" name="service_name" placeholder="Name" value="<?php echo $service->name;?>" />
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Name (T)</label>
                                        <div class="input-group">
                                            <input class="form-control multi tamil-name input-tamil" type="text" name="tamil_service_name" placeholder="jkpH;bgah;" onclick="set_tamil_keypad(this);" value="<?php echo $service->tamil_name;?>" />
                                            <div class="input-group-addon"><i class="fa fa-keyboard-o"></i></div>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="col-md-6">
                                    <div class="form-group float-clear">
                                        <label>Amount</label>
                                        <div class="input-group">
                                            <div class="input-group-addon">$</div>
                                            <input type="text" class="form-control float_value" name="amount" placeholder="0.00" value="<?php echo $service->amount;?>" />
                                        </div>
                                    </div>
                                    
                                    <div class="form-group float-clear">
                                        <label>Prefix</label>
                                        <input type="text" class="form-control" name="prefix" value="<?php echo $service->prefix;?>" />
                                    </div>
                                    
                                    <!--<div class="form-group">
                                        <label>Inclusive of GST</label>
                                        <input type="checkbox" class="form-control" name="gst" class="gst" value="1" <?php echo ($service->gst == 1) ? 'checked' : '';?> />
                                    </div>-->
                                    
                                    <div class="form-group" style="display:<?php echo ($general->gst > 0) ? 'block' : 'none';?>">
                                        <label>Inclusive of GST</label>
                                        <input type="checkbox" class="form-control" name="gst" class="gst" value="<?php echo ($general->gst > 0) ? 1 : 0;?>"<?php echo ($general->gst > 0 || $service->gst == 1) ? 'checked' : '';?>  />
                                    </div>
                                    
                                    <div class="form-group">
                                        <label class="leftcol">Status</label>
                                        <div>
                                            <label for="status" style="width: 32%;"><input type="radio" name="status" value="1" <?php echo $service->status == "1" ? 'checked' : ''; ?>/> &nbsp;&nbsp;Active</label> 
                                            <label for="status" style="width: 32%;"><input type="radio" name="status" value="0" <?php echo $service->status == "0" ? 'checked' : ''; ?> /> &nbsp;&nbsp;Inactive</label> 
                                        </div>
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                        
                        <div class="box-footer form-actions float-clear">
                            <input class="btn reset" type="reset" value="Reset" />
                            <input type="submit" name="submit" value="Update" class="btn btn-success btn-primary" />
                        </div>
                    </div><!-- /.box -->
                </form>
            </div><!-- /.col-xs-12 -->
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside>