                            <!-- start page title -->
                            <div class="row">
                            <div class="col-12">
                                <div class="page-title-box page-title-box-alt">
                                    <h4 class="page-title">Mail Template</h4>
                                    <!-- <div class="page-title-right">
                                        <ol class="breadcrumb m-0">
                                            <li class="breadcrumb-item"><a href="<?= base_url() ?>email_temp">
                                            <button type="button" class="btn btn-primary waves-effect waves-light">Add</button>
                                            </a></li>
                                        </ol>
                                    </div> -->
                                </div>
                            </div>
                        </div>     
                        <!-- end page title --> 




                        <div class="row">
                            <div class="col-12">
                                <div class="card">
                                    <div class="card-body">
                                    <div class="page-title-box page-title-box-alt">
                                        <h4 class="header-title">Email Content Template</h4>
                                        <div class="page-title-right">
                                        <!-- <ol class="breadcrumb m-0" >
                                            <li class="breadcrumb-item"><a href="<?= base_url() ?>email_temp">
                                            <button type="button" class="btn btn-primary waves-effect waves-light">Add</button>
                                            </a></li>
                                        </ol> -->
                                    </div>
                                </div>
                                        

                                        <table id="datatable" class="table table-striped dt-responsive nowrap w-100">
                                            <thead>
                                                <tr>
                                                    <th>Name</th>
                                                    <th>Action</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <?php foreach ($template_data as $row) { ?>
                                            <tr>
                                                <td><?php echo $row['name'];?></td>
                                                <td>
                                                    <a href="<?= base_url() ?>edit_email_temp/<?php echo md5($row['id']);?>"><i class="mdi mdi-lead-pencil"  style="font-size:18px;"></i></a>
                                                    <?php if ($row['is_active'] == 1) { ?>    
                                                    <a href="<?= base_url() ?>mail_temp_deactivate/<?php echo md5($row['id']);?>"><i class="mdi mdi-text-box-check-outline" title="Deactivate" style="font-size:18px;"></i></a>
                                                    <?php } ?>
                                                    <?php if ($row['is_active'] == 0) { ?>      
                                                    <a href="<?= base_url() ?>mail_temp_activate/<?php echo md5($row['id']);?>"><i class="mdi mdi-text-box-remove-outline" title="Activate" style="font-size:18px;"></i></a>
                                                    <?php } ?>
                                                </td>
                                            </tr>
                                            <?php } ?>
                                            </tbody>
                                        </table>
                                        
                                    </div> <!-- end card body-->
                                </div> <!-- end card -->
                            </div><!-- end col-->
                        </div>
                        <!-- end row-->