<section class="page-heading">
    <div class="container">
        <h1><?php echo $breadcrumb ?></h1>
        <ol class="breadcrumb">
            <li><a href="<?php site_url() ?>"><i class="fa fa-home"></i></a></li>
            <li class="active"><?php echo $breadcrumb ?></li>
        </ol>
    </div>
</section>  
<section class="MainContent">
    <div class="container">
        <div class="row">
            <!--             <div class="price_form text-center"><label>Catering Services can also be customized to your liking</label></div>-->
            <?php
            $i = 1;
            foreach ($package_data as $package) {
                ?>

                <div class="col-sm-6 col-md-6">      
                    <h3 class="price_head"><?php echo $package['name'] ?>  </h3>
                    <div class="cat-packeges">
                        <?php echo $package['description'] ?>                                       
                    </div>
                    <br>
   
                    <form class="form-inline form-packeges" method="post" action="<?= site_url('configure-package/' . $package['package_id']) ?>">
                        <div class="form-group">
                            <label>No of people</label>
                            <input type="number" class="form-control" name="no_of_people" id="no_of_people" placeholder="<?php echo $package['min_order_amount'] ?>" min="<?php echo $package['min_order_amount'] ?>" required>
                            <input type="submit" name="submit" class="btn btn-primary" value="Configure Package">
                        </div>
                    </form>
                </div>
                <?php if ($i % 2 == 0) { ?>
                    <div class="clearfix"></div>  
                    <hr>
                <?php } ?> 
                <?php
                $i++;
            }
            ?>
            <?php if ($this->session->userdata('packageErrorMessage')) { ?>
                <div class="alert alert-danger">
                    <?= $this->session->userdata('packageErrorMessage') ?>   
                </div>
                <?php
                $this->session->unset_userdata('packageErrorMessage');
            }
            ?> 
        </div>           
        <!--        <div class="row">
                    <div class="col-sm-6 col-md-4">
                        <div class="packeges-list">
                            <h3><span>A</span> Title First</h3>
                            <ul>
                                <li>Lorem ipsum doler</li>
                                <li>Hello Lorem ipsum doler</li>
                                <li>MK doler ipsum doler</li>
                                <li>Lorem ipsum doler</li>
                            </ul>
                        </div>				
                    </div>
                    <div class="col-sm-6 col-md-4">
                        <div class="packeges-list">
                            <h3><span>B</span> Title First</h3>
                            <ul>
                                <li>Lorem ipsum doler</li>
                                <li>Hello Lorem ipsum doler</li>
                                <li>MK doler ipsum doler</li>
                                <li>Lorem ipsum doler</li>
                            </ul>
                        </div>				
                    </div>
                    <div class="col-sm-6 col-md-4">
                        <div class="packeges-list">
                            <h3><span>C</span> Title First</h3>
                            <ul>
                                <li>Lorem ipsum doler</li>
                                <li>Hello Lorem ipsum doler</li>
                                <li>MK doler ipsum doler</li>
                                <li>Lorem ipsum doler</li>
                            </ul>
                        </div>				
                    </div>
                    <div class="col-sm-6 col-md-4">
                        <div class="packeges-list">
                            <h3><span>D</span> Title First</h3>
                            <ul>
                                <li>Lorem ipsum doler</li>
                                <li>Hello Lorem ipsum doler</li>
                                <li>MK doler ipsum doler</li>
                                <li>Lorem ipsum doler</li>
                            </ul>
                        </div>				
                    </div>
                    <div class="col-sm-6 col-md-4">
                        <div class="packeges-list">
                            <h3><span>E</span> Title First</h3>
                            <ul>
                                <li>Lorem ipsum doler</li>
                                <li>Hello Lorem ipsum doler</li>
                                <li>MK doler ipsum doler</li>
                                <li>Lorem ipsum doler</li>
                            </ul>
                        </div>				
                    </div>
                    <div class="col-sm-6 col-md-4">
                        <div class="packeges-list">
                            <h3><span>F</span> Title First</h3>
                            <ul>
                                <li>Lorem ipsum doler</li>
                                <li>Hello Lorem ipsum doler</li>
                                <li>MK doler ipsum doler</li>
                                <li>Lorem ipsum doler</li>
                            </ul>
                        </div>				
                    </div>
                </div>-->
    </div>
</section>