<?php
include "../Links/topLinks.php";
?>

<section class="section-dashboard manage-event">
    <div class="container">
        <div class="d-flex">
            <div class="manage-event-icon">
                <a class="icon-href" href="./businessPortfolio.php">
                <i class="fa-solid fa-chevron-left arrow-left"></i>
                </a>
            </div>
            <div class="event-content">
                <h5 class="event-title text-center">
                    Manage Products
                </h5>
            </div>
        </div>
    </div>
</section>

<section class="section-dashboard media-margin-section mt-0">
    <div class="container">
        <div class="dashboard-content">
            <p class="dashboard-para active-event mb-3">Active <span> (2)</span></p>
        </div>
        <div class="row gy-4">
            <div class="col-sm-6 col-md-4">
                <a class="blog-href" href="./productDetails.php">
                    <div class="shopping-card">
                        <img src="../assets/images/image-shoes.png" class="shoes-image" alt="image">
                        <div class="shopping-card-content">
                            <h6 class="shopping-card-title">Drake and NOCT</h6>
                            <p class="shopping-card-para">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut vitae eleifend dolor... See more</p>
                            <div class="product-pricing">
                                <p class="price">$80</p>
                            </div>
                        </div>
                    </div>
                </a>
            </div>
            <div class="col-sm-6 col-md-4">
                <a class="blog-href" href="./productDetails.php">
                    <div class="shopping-card">
                        <img src="../assets/images/image-headphones.png" class="shoes-image" alt="image">
                        <div class="shopping-card-content">
                            <h6 class="shopping-card-title">TWS Earburds M10</h6>
                            <p class="shopping-card-para">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut vitae eleifend dolor... See more</p>
                            <div class="product-pricing">
                                <p class="price">$200</p>
                            </div>
                        </div>
                    </div>
                </a>
            </div>
            <!-- <div class="col-sm-6 col-md-4">
                <div class="shopping-card">
                    <img src="../assets/images/image-headphones.png" class="shoes-image" alt="image">
                    <div class="shopping-card-content">
                        <h6 class="shopping-card-title">TWS Earburds M10</h6>
                        <p class="shopping-card-para">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut vitae eleifend dolor... See more</p>
                        <div class="product-pricing">
                            <p class="price">$200</p>
                        </div>
                    </div>
                </div>
            </div> -->
            
            <?php 
            if(isset($_GET['add'])){
                $buttonText = "Go Home";
                $link = "businessPortfolio.php";
            }else{
                $buttonText = "Add New Product";
                $link = "addProduct.php";
            }
            ?>

            <div class="col-12">
                <div class="new-event-btn">
                    <a class="btn-href anchor" href="./<?=$link?>">
                    <button class="btn add-new-event-btn">
                    <?=$buttonText?>
                    </button>
                    </a>
                </div>
            </div>
        </div>

    </div>
</section>


<?php
include "../Links/bottomLinks.php";
?>

<?php
// include "../Links/headerbottom.php";s
?>