<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-sm-12">
            <div class="tabbable">
                <div class="tab-content no-border padding-24">
                    <div class="tab-pane fade in active" id="faq-tab-1">
                        <div class="space-8"></div>
                        <div class="panel-group accordion-style1 accordion-style2" id="faq-list-1">
                            <div class="panel panel-default">
                                <div class="panel-headingnew">SMS Details</div>
                                <div class="left_panel col-sm-12 padding_margin0 pull-left bg-white" id="add_detail">
                                    <ul class="nav nav-tabs nav-tabs1 tab_ul col-sm-2 paddig-right0 margin-top15px">
                                        <?php echo $this->partial('menu.phtml'); ?>
                                    </ul>

                                    <div class="tab-content tab_editprofile col-sm-10 padding-left0 marginbott10px margintop10px">
                                        <div id="home" class="tab-pane fade in tab_editprofile tab_editprofile1 active">
                                            <div class="change_password tab_editprofile">
                                                <div class="tab-content" id="myTabContent">
                                                    <div id="home" class="tab-pane fade active in">
                                                        <div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">
                                                            <div class="row">
                                                                <div class="col-sm-12">
                                                                    <div class="panel panel-default">
                                                                        <div class="panel-headingnew"> View/Update Records </div>
                                                                        <div class="panel-collapse collapse in" aria-expanded="false" >

                                                                            <div class="box">
                                                                                <!-- /.box-header -->
                                                                                <div class="box-body">
                                                                                    <table id="myTable" class="table table-bordered table-striped example3">
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th>S.No</th>
                                                                                                <th>Time</th>
                                                                                                <th>Header</th>
                                                                                                <th>Body</th>
                                                                                                <th>Cost</th>
                                                                                                <th>Status</th>

                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <?php
                                                                                            if ($smsListing) {
                                                                                                $i = 1;
                                                                                                foreach ($smsListing as $listing) {
                                                                                                    ?>

                                                                                                    <tr>
                                                                                                        <td><?php echo $i; ?></td>
                                                                                                        <td><?php echo date('Y-m-d H:i:s', strtotime($listing['sent_time'])); ?></td>
                                                                                                        <td> Booking</td>
                                                                                                        <td><?php echo $listing['mesg']; ?></td>
                                                                                                        <td><?php echo $listing['cost']; ?></td>
                                                                                                        <td><?php echo ($listing['status'] == 0) ? 'NOT SENT' : 'SENT'; ?></td>
                                                                                                    </tr>
                                                                                                    <?php
                                                                                                    $i++;
                                                                                                }
                                                                                            } else {
                                                                                                ?>
                                                                                                <tr><th colspan="6" style="text-align: center;">No Record Found</th></tr>
                                                                                                    <?php } ?>

                                                                                        </tbody>
                                                                                    </table>
                                                                                </div>
                                                                                <!-- /.box-body -->
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <br>
                    <!-- /.widget-box -->
                </div>
                <!-- /.col -->
                </section>