<?php
require_once "../admin/private/initialize.php";
$_SESSION['url'] = $_SERVER['REQUEST_URI'];

if (isset($_GET['company'])) {

    $vendors = Vendor::find_by_cat_url($_GET['company']);

    $contact = ContactProfile::find_vendor($vendors->id);

    $business = BusinessProfile::find_vendor_id($vendors->id);

    $others = OtherProfile::find_vendor_id($vendors->id);

    $plans = Order::find_vender($vendors->id);

    $s_p = Product::find_vendor_id($vendors->id);

    if ($plans) {

        $plan_details = Plan::find_by_id($plans->premium_id);
    }

    $title = ucfirst(strtolower($vendors->vendor_company)) . ' in ' . strtolower($vendors->city) . ', ' . strtolower($vendors->vendor_state) . ', india - Worldsindia';

    $s_description = ucfirst(strtolower($vendors->vendor_company)) . ' is registered company with Worldsindia.' . ' ' . ucfirst(strtolower($vendors->vendor_company)) . ' is a leading suppliers, exporters, wholesaler, & manufacturers of ' . strtolower($s_p->product_name) . ' in ' . strtolower($vendors->city) . ', ' . strtolower($vendors->vendor_state) . ', india.';
    $s_keywords = strtolower($vendors->vendor_company) . ', suppliers, manufacturers, exporters, ' . strtolower($s_p->product_name) . ', india, ' . strtolower($vendors->vendor_state);
}

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <base href="<?php echo $v ?>">
    <title>Certificate</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta name="description" content="" />
    <meta name="keywords" content="">
    <meta name="author" content="" />
    <meta name="MobileOptimized" content="320">
    <!-- favicon links -->
    <link rel="icon" type="image/icon" href="favicon.png" />
    <!-- main css -->
    <link rel="stylesheet" href="css/fonts.css" />
    <link rel="stylesheet" href="css/flaticon.css" />
    <link rel="stylesheet" href="css/custom_animation.css" />
    <link rel="stylesheet" href="css/bootstrap.css" />
    <link rel="stylesheet" href="css/font-awesome.css" />
    <link rel="stylesheet" href="css/jquery.fancybox.min.css" />
    <link rel="stylesheet" href="css/magnific-popup.css" />
    <link rel="stylesheet" href="js/plugin/owl/owl.carousel.css" />
    <link rel="stylesheet" href="css/style.css" media="screen" />
    <link rel="stylesheet" href="css/colors/default.css" id="colors" />
</head>
<body>
    <!--main wrapper start-->
    <div id="wrapper">
        <div class="hm_home_style1">
            <!--top_header start-->
            <?php include 'includes/top-bar.php' ?>
            <!--menu start-->
            <?php include 'includes/header.php' ?>
            <!--banner start-->
            <div class="hm_bread_wrapper">
                <div class="container">
                    <div class="row">
                        <div class="col-lg-12 col-md-12">
                            <h1 style="color: #272d58;">Certificate</h1>
                            <ol class="breadcrumb">
                                <li class="breadcrumb-item"><a style="color: #272d58;" href="<?php echo $base_url . $_GET['company'] ?>">Home</a></li>
                                <li class="breadcrumb-item active">Certificate</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
            <style>
                .gallery_img img{
                    height:320px;
                    width:100%;
                }
                .gallery_full_width .gallery_img {
                margin-bottom: 34px;
                padding: 10px;
            }
            </style>
            
            <!--About section start-->
            <div class="hm_gallery_wrapper">
                <div class="container">
                    <div class="hm_gallery_inner margin_btm30">
                        <div class="row">
                            <div class="col-lg-12 col-md-12">
                                <div class="gallery_full_width" id="portfolio">
                                    <?php $gallery = Certificate::show_certificate($vendors->id);
                                    foreach ($gallery as $gall) {
                                    ?>
                                        <div class="col-lg-4 col-md-4 col-sm-6 padding_left padding_right" data-value="1">
                                            <div class="gallery_img">
                                                <img src="../../vender/<?php echo $gall->view_path() ?>" alt="" class="img-responsive" />
                                                <div class="gallery_img_overlay"></div>
                                                <div class="overlay_buttons">
                                                    <a class="popup-gallery" href="../../vender/<?php echo $gall->view_path() ?>"><i class="fa fa-search"></i></a>
                                                </div>
                                            </div>
                                        </div>
                                    <?php } ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--footer start-->
            
            <?php include 'includes/footer.php' ?>
            
            <!-- Footer End -->
            <!--popup inquiry form-->
            <div class="hm_login_form_overlay">
                <div class="hm_login_form">
                    <div class="hm_login_header">
                        <h1>Send Inquiry</h1>
                        <span class="login_close"><i class="fa fa-times" aria-hidden="true"></i></span>
                    </div>
                    <div class="login_fields">
                        <form action="">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="name">Name</label>
                                    <input type="text" class="form-control" id="name" placeholder="Buyer Full Name Here">
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="email">Email</label>
                                    <input type="email" class="form-control" id="email" placeholder="Your Official/Personal Email">
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="mobile">Mobile Number</label>
                                    <input type="text" class="form-control" id="mobile" placeholder="Buyer Contact Number">
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="company">Company Name</label>
                                    <input type="email" class="form-control" id="email" placeholder="Your Company Name">
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="quantity">Quantity</label>
                                    <input type="text" class="form-control" id="quantity" placeholder="Quantity">
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label for="Unit">Unit</label>
                                    <select class="form-control" name="unit" required>
                                        <option>Select Unit</option>
                                        <option value="Pcs">Piece(s)/Pcs</option>
                                        <option value="Carton">Carton</option>
                                        <option value="Dozen">Dozen</option>
                                        <option value="m">Meter(s)/m</option>
                                        <option value="t">Metric Ton/t</option>
                                        <option value="Kg">Kilogram/Kg</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label for="requirement_detail">Requirement Details:</label>
                                    <textarea class="form-control" rows="5" id="requirement_detail" placeholder="Kindly write detail requirement of your here & do also mention payment mode option."></textarea>
                                </div>
                            </div>
                            <a href="#" class="inquiry-btn cool">Send Enquiry</a>
                        </form>
                    </div>
                </div>
            </div>

        </div>
        <!--main wrapper-->
    </div>
    <!--script-->
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/bootstrap.js"></script>
    <script type="text/javascript" src="js/jquery.fancybox.min.js"></script>
    <script type="text/javascript" src="js/wow.min.js"></script>
    <script type="text/javascript" src="js/jquery.magnific-popup.js"></script>
    <script type="text/javascript" src="js/jquery.mixitup.js"></script>
    <script type="text/javascript" src="js/plugin/owl/owl.carousel.min.js"></script>
    <script type="text/javascript" src="js/switcher.js"></script>
    <script type="text/javascript" src="js/custom.js"></script>

</body>

</html>