<?php 
    include("../db.php");
    if($_POST){

       
    
   

        $db->updateAry("fee_structure", $_POST, "where id='1'");
        
        header("Location: fee");
    }
?>

<!DOCTYPE html>
<html>
<head>
    <title>Admin Dashboard</title>
    <?php include("meta.php"); ?>

</head>
<body> 
 
<?php include("header.php"); ?>

<?php include("sidebar.php"); 

    $data = $db->getRow("select * from fee_structure where id='1' ");

?>

<div class="main">
    
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="content-div">
                    <h2>Fee Structure</h2>
                    
                    <form action="" method="post" >
                        <div class="form-row row">
                            <div class="col-md-2"><label>Fee Amount</label></div>
                            <div class="col-md-10">
                                <input id="content" name="fee" style="width: 100%;" value="<?php echo $data['fee'];?>" >
                        </div>
                        </div>
                        
                       <div class="form-row row">
                            <div class="col-md-2"><label>Convenience  Fee</label></div>
                            <div class="col-md-10">
                                <input id="content" name="cncv" style="width: 100%;" value="<?php echo $data['cncv'];?>" >
                        </div>
                        </div>
                        <div class="form-row row">
                            <div class="col-md-2"><label>G.S.T</label></div>
                            <div class="col-md-10">
                                <input id="content" name="tax" style="width: 100%;" value="<?php echo $data['tax'];?>">
                        </div>
                        </div>
                        <div class="form-row row">
                            <div class="col-md-2"><label>Total Amount</label></div>
                            <div class="col-md-10">
                                <input id="content" name="total_amount" style="width: 100%;"value="<?php echo $data['total_amount'];?>" >
                        </div>
                        </div>
                       <br>
                        <div class="form-row form-check text-center"><input type="submit" class="btn btn-primary" value="Save Changes"></div>
                    </form>
                    
                </div>

            </div>   
        </div>
    </div>
    
</div>
     
</body>
</html> 
