<div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <div class="img-profile ml-3">

                    </div>
                    <h1 class="m-0 text-dark"><?php echo (isset($category)) ? 'Edit Setting' : 'Add Setting' ?>
                    </h1>

                </div><!-- /.col -->
            
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <?php
      if(isset($category)){
        $endpoint = 'updatesetting';
      }else{
        $endpoint = 'updatesetting';
      }
    ?>
    <form method="post" id="add_driver" class="card" action="<?php echo base_url() . "dashboard/".$endpoint; ?>">
        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
               
            <?php
          
            ?>


                    <div class="row">
                        <input type="hidden" name="id" id="id" value="<?=$id?>">

                        <div class="col-sm-12 col-md-12">
                            <label class="form-label">Tax<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="number" step="0.01" name="tax" id="tax" class="form-control" placeholder="tax" value="<?php echo $category['tax'];?>">
                            </div>
                        </div>

                        <br><br>
                        <div class="col-sm-12 col-md-12">
                            <label class="form-label">Service Fee<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="number" step="0.01" name="serviceFee" id="serviceFee" class="form-control" placeholder="serviceFee" value="<?php echo $category['serviceFee'];?>">
                            </div>
                        </div>
                        <div class="col-sm-12 col-md-12">
                            <label class="form-label">delivery<span class="form-required">*</span></label>
                            <div class="form-group">
                                <input type="number" step="0.01" name="delivery" id="delivery" class="form-control" placeholder="delivery" value="<?php echo $category['delivery'];?>">
                            </div>
                        </div>
                        <div class=" col-sm-12 col-md-12 text-right">
                        <br><br>
                        <button type="submit" class="btn btn-primary"> <?php echo (isset($category)) ? 'Edit Setting' : 'Add Setting' ?></button>
                        <br><br>
                        </div>

                      </div>

         

            </div>
        </section>
        <!-- /.content -->


    </form>