<?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><?php echo $title ?></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" href="../../assets/images/favicon.png" type="image/png" />
    <!-- main css -->
    <link rel="stylesheet" href="css/fonts.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="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" />
       <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Audiowide|Sofia|DM+Serif+Display:ital@1">
</head>

<body>
    <!--main wrapper start-->
    <div id="wrapper">
        <!--top_header start-->
        <div class="hm_home_style1">
            <!-- Top Bar -->
            <?php include 'includes/top-bar.php' ?>
            <!-- Top Bar Ends -->
            <!--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;">about</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">about</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
            <!--About section start-->
            <style>
    .about-us-img {
    max-width: 100%;
    width: 100%;
    height: 257px;
    max-height: 400px;
    /*object-fit: cover;*/
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 80px;
}
@media (max-width: 767px) {
    .about-us-img {
    height: 160px;
    margin-top: 270px;
    }
}
  @media (max-width: 767px) {
    .hm_about_wrapper {
      text-align: center;
      margin-top: -325px;
    }
  }
  
</style>
           <div class="hm_about_wrapper">
    <input type="hidden" id="company_name" value="<?php echo $_GET['company'] ?>">
    <div class="container">
        <div class="row align-items-center">
            <?php
                if ($contact->about_image) {
                    $about_path = "../../vender/" . $contact->about_path();
                    if ($about_path && file_exists($about_path)) {
                        $a_image = $about_path;
                    } else {
                        $a_image = "images/about-welcome2.jpg"; // Static default image
                    }
                } else {
                    $a_image = "images/about-welcome2.jpg"; // Static default image
                }
            ?>
            <div class="col-lg-6 col-md-6 col-sm-12">
                <div class="hm_about_img">
                    <img src="<?php echo $a_image ?>"
                         alt="About Us"
                         class="about-us-img img-fluid">
                </div>
            </div>
                        <div class="col-lg-6 col-md-6">
                            <div class="hm_about_data">
                                <h1><span class="hm_color" style="color: #272d58;" >Welcome</span> To <?php echo  $vendors->vendor_company ?></h1>
                                <p><?php echo $business->company_detail ?> </p>
                                <!--<a href="#" class="hm_btn">Download Boucher</a>-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- company details table card -->
          


           <div class="hm_company_wrapper">
    <div class="container">
        <div class="row">
            <div class="col-lg-12 col-md-12">
                <h1 class="hm_heading"><span class="hm_color" style="color: #272d58;">Company Details </span></h1>
            </div>
        </div>
        <div class="row">
            <div class="company-inner">
                <div class="col-md-8 company-table">
                    <table class="table table-striped table-bordered">
                        <tbody>
                            <tr>
                                <th scope="col" class="ta-c">Name of Founder</th>
                                <td class="ta-l"><?php echo $vendors->vendor_name ?></td>
                            </tr>
                            <tr>
                                <th scope="row" class="ta-c">Business Type</th>
                                <td class="ta-l">
                                    <?php echo htmlspecialchars(isset($business->business_type) ? $business->business_type : ''); ?>
                                </td>
                            </tr>
                            <?php if($business->establishment_year){ ?>
                            <tr>
                                <th scope="row" class="ta-c">Year of Establishment</th>
                                <td class="ta-l"><?php echo $business->establishment_year ?></td>
                            </tr>
                            <?php } ?>
                            <tr>
    <th scope="row" class="ta-c" style="margin-left: 4px;">GST No.</th>
    <td class="ta-l"><?php echo decrypt_data($others->gst_number) ?></td>
</tr>

                            <?php if($business->ownership_type){ ?>
                            <tr>
                                <th scope="row" class="ta-c">Ownership Type</th>
                                <td class="ta-l"><?php echo $business->ownership_type ?></td>
                            </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>


            <!--Choose section start-->
            <!--<div class="hm_choose_wrapper">-->
            <!--    <div class="container">-->
            <!--        <div class="row">-->
            <!--            <div class="col-lg-8 col-md-8 pull-right padding_left">-->
            <!--                <div class="hm_choose_data">-->
            <!--                    <h1 class="hm_heading text-left"><span class="hm_color">why </span>Choose Us</h1>-->
            <!--                    <div class="hm_choose_list">-->
            <!--                        <div class="panel-group" id="accordion">-->
            <!--                            <div class="panel panel-default">-->
            <!--                                <div class="panel-heading">-->
            <!--                                    <h4 class="panel-title">-->
            <!--                                        <a data-toggle="collapse" data-parent="#accordion" href="#collapse1">-->
            <!--                                            Respecting Your Time</a>-->
            <!--                                    </h4>-->
            <!--                                </div>-->
            <!--                                <div id="collapse1" class="panel-collapse collapse in">-->
            <!--                                    <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et do lore magna aliqua.Lonsectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore </div>-->
            <!--                                </div>-->
            <!--                            </div>-->
            <!--                            <div class="panel panel-default">-->
            <!--                                <div class="panel-heading">-->
            <!--                                    <h4 class="panel-title">-->
            <!--                                        <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapse2">-->
            <!--                                            Latest In Technology</a>-->
            <!--                                    </h4>-->
            <!--                                </div>-->
            <!--                                <div id="collapse2" class="panel-collapse collapse">-->
            <!--                                    <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et do lore magna aliqua.Lonsectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore</div>-->
            <!--                                </div>-->
            <!--                            </div>-->
            <!--                            <div class="panel panel-default">-->
            <!--                                <div class="panel-heading">-->
            <!--                                    <h4 class="panel-title">-->
            <!--                                        <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapse3">-->
            <!--                                            Professional Staff</a>-->
            <!--                                    </h4>-->
            <!--                                </div>-->
            <!--                                <div id="collapse3" class="panel-collapse collapse">-->
            <!--                                    <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et do lore magna aliqua.Lonsectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore</div>-->
            <!--                                </div>-->
            <!--                            </div>-->
            <!--                            <div class="panel panel-default">-->
            <!--                                <div class="panel-heading">-->
            <!--                                    <h4 class="panel-title">-->
            <!--                                        <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapse4">-->
            <!--                                            Free Home Dilevery</a>-->
            <!--                                    </h4>-->
            <!--                                </div>-->
            <!--                                <div id="collapse4" class="panel-collapse collapse">-->
            <!--                                    <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et do lore magna aliqua.Lonsectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore</div>-->
            <!--                                </div>-->
            <!--                            </div>-->
            <!--                            <div class="panel panel-default">-->
            <!--                                <div class="panel-heading">-->
            <!--                                    <h4 class="panel-title">-->
            <!--                                        <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapse5">-->
            <!--                                            High Quality</a>-->
            <!--                                    </h4>-->
            <!--                                </div>-->
            <!--                                <div id="collapse5" class="panel-collapse collapse">-->
            <!--                                    <div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et do lore magna aliqua.Lonsectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore</div>-->
            <!--                                </div>-->
            <!--                            </div>-->
            <!--                        </div>-->
            <!--                    </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/wow.min.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>