<div class="row">
    <!--  table area -->
    <div class="col-sm-12">

        <div class="card"> 

            <div class="card-body">
                <table width="100%" class="datatable table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th><?php echo display('cid') ?></th>
                            <th><?php echo display('name') ?></th>
                            <th><?php echo display('address') ?></th>
                            <th><?php echo display('phone') ?></th>
                           <th><?php echo display('action') ?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if (!empty($curd)) { ?>
                            <?php $sl = 1; ?>
                            <?php foreach ($curd as $que) { ?>
                                <tr class="<?php echo ($sl & 1)?"odd gradeX":"even gradeC" ?>">
                                    <td><?php echo $sl; ?></td>
                                    <td><?php echo html_escape($que->t_name); ?></td>
                                    <td><?php echo html_escape($que->t_address); ?></td>
                                    <td><?php echo html_escape($que->t_phone); ?></td>
                                    
                                    <td class="center">
                                        <a href="<?php echo html_escape(base_url("crud/Crud/update_form/$que->id")) ?>" class="btn btn-xs btn-success"><i class="fa fa-pencil"></i></a> 
                                        <a href="<?php echo html_escape(base_url("crud/Crud/delete/$que->id")) ?>" class="btn btn-xs btn-danger" onclick="return confirm('<?php echo display('are_you_sure') ?>') "title="Delete "><i class="fa fa-trash"></i></a> 
                                    </td>
                                </tr>
                                <?php $sl++; ?>
                            <?php } ?> 
                        <?php } ?> 
                    </tbody>
                </table>  <!-- /.table-responsive -->
            </div>
        </div>
    </div>
</div>
 
 