<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height:5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> {$shcontrollname}
                        </div>

                        <div class="actions">
                            <a class="btn default btn-xs blue tooltips" href="{$hosturl}/controllers/{$controllname}.php?ac=index" id="btn_showm_index">
                                <i class="fa  fa-plus"></i>Add New
                            </a>
                        </div>


                    </div>
                    <div class="portlet-body " style="padding: 15px">
                        <table class="table table-striped table-bordered table-hover table-checkable order-column" id="sample_3">
                            <thead>
                                <tr>
                                    <th >
                                        Name
                                    </th>
                                    <th style="width: 8%;">
                                        Created At
                                    </th>
                                    <th style="width: 5%;" class="btn_showm_edit"></th>
                                    <th style="width: 5%;" class="btn_showm_del"></th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach $branches as $single}
                                    <tr class="odd gradeX">
                                        <td>
                                            {$single->name}
                                        </td>
                                        <td>
                                            {$single->created_at|date_format:"%d/%m/%Y"}
                                        </td>
                                        <td class="btn_showm_edit">
                                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=edit&id={$single->id}" class="btn blue-hoki btn-xs">
                                                <i class="fa fa-pencil"></i>
                                            </a>
                                        </td>
                                        <td class="btn_showm_del">
                                            {if  $single->id != 1 }
                                                <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$single->id}"
                                                   data-link="{$controllname}" data-fn="del" data-tableName="{$tableName}">
                                                    <i class="fa fa-times"></i>
                                                </a>
                                            {/if}
                                        </td>
                                    </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>








