<?php $page = "Config";  ?>
<?php include "../../routes/config.php"; ?>
<?php include "../layout/header.php"; ?>
<body>

    <?php include "../layout/navbar.php"; ?>

    <div class="container-fluid">
      <div class="row">
        <?php include "../layout/sidenav.php"; ?>
        
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
            <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
                <h1 class="h2">Edit <?php echo $page; ?></h1>
            </div>
            <form action="" method="POST" autocomplete="off" enctype="multipart/form-data">
                <h4>Social Media</h4>
                <div class="input-group mb-3">
                    <div class="input-group-prepend">
                        <span class="input-group-text" id="email">Email</span>
                    </div>
                    <input type="email" value="<?php echo $config->email; ?>" name="email" class="form-control">
                </div>
                <div class="input-group mb-3">
                    <div class="input-group-prepend">
                        <span class="input-group-text" id="facebook">Facebook</span>
                    </div>
                    <input type="text" value="<?php echo $config->facebook; ?>" name="facebook" class="form-control">
                    <div class="input-group-prepend ml-3">
                        <span class="input-group-text" id="linkedin">Linkedin</span>
                    </div>
                    <input type="text" value="<?php echo $config->linkedin; ?>" name="linkedin" class="form-control">
                </div>
                <div class="input-group mb-3">
                    <div class="input-group-prepend">
                        <span class="input-group-text" id="instagram">Instagram</span>
                    </div>
                    <input type="text" value="<?php echo $config->instagram; ?>" name="instagram" class="form-control">
                    <div class="input-group-prepend ml-3">
                        <span class="input-group-text" id="twitter">Twitter</span>
                    </div>
                    <input type="text" value="<?php echo $config->twitter; ?>" name="twitter" class="form-control">
                </div>
                <hr>
                <h4> Address </h4>
                <div class="input-group mb-3">
                    <div class="input-group-prepend">
                        <span class="input-group-text">Address</span>
                    </div>
                    <textarea name="address" class="form-control" rows="3"><?php echo $config->address; ?></textarea>
                </div>
                <div class="input-group mb-3">
                    <div class="input-group-prepend">
                        <span class="input-group-text" id="phone_number">Phone Number</span>
                    </div>
                    <input type="text" value="<?php echo $config->phone_number; ?>" name="phone_number" class="form-control">
                    <div class="input-group-prepend ml-3">
                        <span class="input-group-text" id="mobile_number">Mobile Number</span>
                    </div>
                    <input type="text" value="<?php echo $config->mobile_number; ?>" name="mobile_number" class="form-control">
                </div>
                <hr>
                <div class="input-group mb-3">
                    <input type="submit" class="btn btn-sm btn-primary gsa-text-white" name="update" value="Update">
                </div>
            </form>
        </main>

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