<div class="page-title">
    <div class="container">
        <div class="banner-full-wrap">
            <div class="row g-0">
                <div class="col-md-4">
                    <div class="text-center banner-right-wrap">
                        <h1 class="main-title">Products</h1>
                    </div>
                </div>
                <div class="col-md-8">
                    <img src="<?php echo base_url(); ?>assets/user/img/product-banner.webp" alt="shop" class="w-100">
                </div>
            </div>
        </div>
    </div>
</div>
<!-- page-title end -->
<div class="shop-detail product-detail">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="alert alert-success alert-dismissible" role="alert" <?php if ($this->session->flashdata('message') == '') { ?> style="display:none" <?php } ?>>
                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    <?php echo $this->session->flashdata('message'); ?>
                </div>
                <div class="alert alert-danger alert-dismissible" role="alert" <?php if ($this->session->flashdata('emessage') == '') { ?> style="display:none" <?php } ?>>
                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    <?php echo $this->session->flashdata('emessage'); ?>
                </div>
            </div>
        </div>
        <div class="row justify-content-center">
            <div class="col-lg-12 col-md-12 col-12 mb-md-4 pb-2">
                <a href="<?php echo base_url('products'); ?>" class="go-back-two">
                    <img src="<?php echo base_url(); ?>assets/user/img/back-one.webp" alt="back" class="img-fluid me-2" width="60"> Back
                </a>
            </div>

            <div class="col-lg-10 col-md-10 col-12">
                <div class="product-inner">
                    <div class="title-wrap">
                        <h2 class="title">My List</h2>
                    </div>
                    <div class="list-pro-wrap">
                        <div class="top-head">
                            <h3>Products</h3>
                            <h3>Quantity</h3>
                        </div>
                        <ul class="list-unstyled ps-0">
                            <?php if($this->wishlist->contents()){ foreach ($this->wishlist->contents() as $key => $value) { ?>
                                <li>
                                    <h4 class="pro-name"> <a data-id="<?php echo $value["rowid"]; ?>" href="javascript:void(0)" class="close-remove me-3 deleteproductWishlist"> <img src="<?php echo base_url(); ?>assets/user/img/remove.webp" alt="" class="img-fluid" width="20"></a> <?php echo $value['options']['product_name']; ?> </h4>
                                    <p class="quantity"><?php echo $value['qty']; ?></p>
                                </li>
                            <?php } }else{ ?>
                                <li><p>No items found...</p></li>
                            <?php } ?>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="contact">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-10 col-md-10 col-12">
                <h3 class="heading-title text-center"> Request for a quote! </h3>
                <form id="mycontactUsForm" action="<?php echo base_url('front/productCartEnquiry'); ?>" method="post" enctype="multipart/form-data" class="pt-md-5 pt-4">
                    <div class="row g-md-5 g-3">
                        <div class="col-md-6 col-12">
                            <div class="form-group">
                                <label for="">First Name</label>
                                <input type="text" class="form-control" name="first_name">
                            </div>
                        </div>
                        <div class="col-md-6 col-12">
                            <div class="form-group">
                                <label for="">Last Name</label>
                                <input type="text" class="form-control" name="last_name">
                            </div>
                        </div>
                        <div class="col-md-6 col-12">
                            <div class="form-group">
                                <label for="">Email</label>
                                <input type="email" class="form-control" name="email">
                            </div>
                        </div>
                        <div class="col-md-6 col-12">
                            <div class="form-group">
                                <label for="">Phone Number</label>
                                <input type="text" class="form-control" name="phone">
                            </div>
                        </div>
                        <div class="col-md-6 col-12">
                            <div class="form-group">
                                <label for="">Company Name (Optional)</label>
                                <textarea rows="5" class="form-control" name="company_name"></textarea>
                            </div>
                        </div>
                        <div class="col-sm-12">
                            <div class="form-group mb-3">
                                <div class="g-recaptcha" data-sitekey="6LfHqIAqAAAAAJAEA6PuaLFO3Q3uyDoQWjiaNYqg"></div>
                            </div>
                        </div>
                        <div class="col-sm-12">
                            <div class="form-group text-center pt-3">
                                <button type="submit" class="btn btn-secondary">
                                    <span> Submit <div><img src="<?php echo base_url(); ?>assets/user/img/btn-right.png" class="img" alt="right"> </div> </span>
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>