<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <h3 class="page-title">
            {$shcontrollname}
        </h3>
        <div class="page-bar">
            <ul class="page-breadcrumb">
                {$breadcrumbs}
            </ul>
        </div>
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row">
            <div class="col-md-12">
                <div class="portlet light bg-inverse">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-equalizer font-red-sunglo"></i>
                            <span class="caption-subject font-red-sunglo bold uppercase">العرض في {$shcontrollname}</span>
                        </div>
                        <div class="actions" id="nestable_list_menu">
                            <a class="btn default btn-xs blue tooltips" href="{$hosturl}/{$controllname}" data-container="body" data-placement="top" data-original-title="إضافة جديد">
                                <i class="fa  fa-plus"></i>
                                إضافة جديد
                            </a>

                            <!--                            <a class="btn default btn-xs red tooltips disabled deleteSelected" data-link="{$controllname}" data-container="body" data-placement="top" data-original-title="حذف" id="deleteBtn" >
                                                            <i class="fa fa-trash"></i>
                                                            حذف
                                                        </a>-->
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form id='showForm' method='post' action="{$hosturl}/{$controllname}/del">
                            <table class="table table-hover" id="custom_tbl_dt">
                                <thead>
                                    <tr>
                                        <!--<th style="width:8px;"><input type="checkbox" name="checkAll" id="checkAll" /></th>-->
                                        <th>#</th>
                                        <th> الاسم بالعربي</th>
                                        <th> الاسم بالانجليزي</th>
                                        <!--                                        <th>
                                                                                    الصورة
                                                                                </th>-->
                                        <th>إخفاء</th>
                                        <th>تعديل</th>
                                        <th>حذف</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach $returnedData as $single}
                                    <tr class="odd gradeX">
                                        <!--                                        <td>
                                                                                    <input type="checkbox" class="checkItem" id="title" name="title" value="{$single.id}" data-extra="{$single.title}" />
                                                                                </td>-->
                                        <td>{$single@iteration}</td>
                                        <td>{$single.title}</td>
                                        <td>{$single.title_en}</td>
                                        <!--                                        <td>
                                                                        <center>
                                                                            <img src="{$hosturl}/../upload/{$controllname}/{$single.image}" style="border: 1px solid; width: 70px; height: 70px;"/>
                                                                        </center>
                                                                        </td>-->
                                        <td>

                                            <a  class="btn purple-intense btn-xs hideitem" data-ishide="{if $single.hide eq 0}1{else}0{/if}" data-id="{$single.id}" data-link="{$controllname}"><i class="fa fa-history"></i>
                                                {if $single.hide eq 0}ظاهر{else}مخفي{/if}
                                            </a>

                                        </td>
                                        <td>
                                            <a href="{$hosturl}/{$controllname}/edit/{$single.id}" class=""><i class="fa fa-pencil-square-o"></i> </a>
                                        </td>

                                        <td>

                                            <a class=" deletemsg" data-id="{$single.id}" data-link="{$controllname}"><i class="fa fa-trash"></i> </a>

                                        </td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>
                        </form>

                    </div>
                </div>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<!-- END CONTENT -->