<div class="page-title">
    <div class="container-fluid p-0">
        <div class="banner-full-wrap">
            <div class="row g-0">
                <div class="col-md-12 p-0">
                    <img src="<?php echo base_url(); ?>assets/user/img/Mamon-Cake.webp" alt="shop" class="w-100">
                    <div class="text-center banner-bottom-wrap">
                        <h1 class="title"><?php echo $post['title']; ?></h1>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="recipes-detail">
    <div class="container">
        <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(); ?>recipes" 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>
        <div class="row g-md-5 g-3 justify-content-center">
            <?php if($post['title1']!=''){ ?>
                <div class="col-lg-5 col-md-5 col-12">
                    <div class="recipes-box">
                        <div class="title-wrap">
                            <h3><?php echo $post['title1']; ?></h3>
                        </div>
                        <div class="des-wrap">
                            <?php echo $post['description1']; ?>
                        </div>
                    </div>
                </div>
            <?php } ?>
            <?php if($post['title2']!=''){ ?>
                <div class="col-lg-7 col-md-7 col-12">
                    <div class="recipes-box">
                        <div class="title-wrap">
                            <h3><?php echo $post['title2']; ?></h3>
                        </div>
                        <div class="des-wrap">
                            <?php echo $post['description2']; ?>
                        </div>
                    </div>
                </div>
            <?php } ?>
            <?php if($post['title3']!=''){ ?>
                <div class="col-lg-5 col-md-5 col-12">
                    <div class="recipes-box">
                        <div class="title-wrap">
                            <h3><?php echo $post['title3']; ?></h3>
                        </div>
                        <div class="des-wrap">
                            <?php echo $post['description3']; ?>
                        </div>
                    </div>
                </div>
            <?php } ?>
            <?php if($post['title4']!=''){ ?>
                <div class="col-lg-7 col-md-7 col-12">
                    <div class="recipes-box">
                        <div class="title-wrap">
                            <h3><?php echo $post['title4']; ?></h3>
                        </div>
                        <div class="des-wrap">
                            <?php echo $post['description4']; ?>
                        </div>
                    </div>
                </div>
            <?php } ?>
            <?php if($post['title5']!=''){ ?>
                <div class="col-lg-5 col-md-5 col-12">
                    <div class="recipes-box">
                        <div class="title-wrap">
                            <h3><?php echo $post['title5']; ?></h3>
                        </div>
                        <div class="des-wrap">
                            <?php echo $post['description5']; ?>
                        </div>
                    </div>
                </div>
            <?php } ?>
            <?php if($post['title6']!=''){ ?>
                <div class="col-lg-7 col-md-7 col-12">
                    <div class="recipes-box">
                        <div class="title-wrap">
                            <h3><?php echo $post['title6']; ?></h3>
                        </div>
                        <div class="des-wrap">
                            <?php echo $post['description6']; ?>
                        </div>
                    </div>
                </div>
            <?php } ?>
        </div>
    </div>
</div>

<div class="related-product news-section">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-12">
                <div class="text-center pb-md-4">
                    <h3 class="heading-title"> View Other Recipes </h3>
                </div>
                <div class="related-product-inner">
                    <div class="owl-carousel owl-theme recipes-item">
                        <?php if(isset($related) && $related){ foreach ($related as $key => $value){ ?>
                            <div class="item">
                                <div class="our-news">
                                    <div class="img-wrap">
                                        <?php if($value['image']!=''){ ?>
                                            <img src="<?php echo base_url($value['image']); ?>" class="img-fluid" alt="recipe image">
                                        <?php }else{ ?>
                                            <img src="<?php echo base_url(); ?>assets/user/img/news.webp" class="img-fluid" alt="recipe image">
                                        <?php } ?>
                                    </div>
                                    <div class="content-wrap">
                                        <h1 style="min-height:48px; color:#353535;"><?php echo substr($value['title'],0,40); ?> <?php echo(strlen($value['title'])>40)?'...':''; ?></h1>
                                        <a href="<?php echo base_url('recipe-detail/'.url_title(strtolower($value['title'])).'/'.$value['id']); ?>" class="btn btn-primary"> <span> View More <div><img src="<?php echo base_url(); ?>assets/user/img/btn-right.png" class="img" alt="right"> </div> </span></a>
                                    </div>
                                </div>
                            </div>
                        <?php } } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>