<div class="card custom-sadow" id="video_demo">
    <div class="card-header">
        <h3 class="card-title"><i class="fa fa-eye" aria-hidden="true"></i> &nbsp;&nbsp;Video Demo</h3>
    </div>
    <div class="card-body ">
        <div class="mb-4">
            <div class="row">
                <div class="col-xl-7 col-lg-7 col-md-7 mx-auto">
                    <div class="video-img">
                        <?php
                        $video_id = explode("?v=", $product->video_demo);
                        $video_id = $video_id[1];
                        $thumbnail = "http://img.youtube.com/vi/" . $video_id . "/maxresdefault.jpg";
                        ?>
                        <img loading="lazy" src="<?php echo $thumbnail ?>" alt="img" class="cover-image br-7">
                        <a class="mt-6 d-block video-btn mx-auto " href="javascript:void(0)" data-bs-toggle="modal" data-bs-target="#open_video_brochur"><i class="fa fa-play text-white"></i></a>
                    </div>
                    <!-- <div class="modal fade" id="homeVideo" tabindex="-1" role="dialog">
                        <div class="modal-dialog modal-lg" role="document">
                            <div class="modal-content">
                                <button type="button" class="btn btn-default" data-bs-dismiss="modal"><i class="fa fa-times"></i></button>


                                <video id="video-player-005" class="video-player" poster="<?php //echo $thumbnail; ?>">
                                    <source src="<?php //echo file_get_contents(base_url() . 'home/video?url=' . $product->video_demo); ?>" type="video/mp4">
                                    Your browser does not support the video tag.
                                </video>

                                <script type="text/javascript">
                                    document.addEventListener("DOMContentLoaded", function() {
                                        new Moovie({
                                            selector: "#video-player-005",
                                        });
                                    });
                                </script>
                            </div>
                        </div>
                    </div> -->
                </div>
            </div>
        </div>
    </div>
   <?php include 'button.php';?>
</div>