<!-- 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 no-print" 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 deleteAppSelected" 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 class="no-print"> الصورة</th>
                                        <th width="5%"></th>
                                        <th width="5%"></th>
                                        <th width="5%"></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach $pages 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->id}
                                        </td>
                                        <td>
                                            {$single->name}
                                        </td>
                                        <td>
                                            {$single->name_en}
                                        </td>
                                        <td>
                                            <div class="thumb " style="height: 100px;width: 100px;">
                                                <img src="{$hosturl}/../upload/{$controllname}/{$single->image}" style="height: 100%; width: 100%; ">
                                            </div>
                                        </td>
                                        <td>
                                            <a href="{$hosturl}/{$controllname}/edit/{$single->id}" class="btn blue-hoki btn-xs  no-print"><i class="fa fa-pencil"></i> تعديل</a>
                                        </td>

                                        <td>
                                            {if $single->id > 5}
                                            <a class="btn grey-cascade btn-xs deletemsg no-print" data-id="{$single->id}" data-link="{$controllname}"><i class="fa fa-times"></i> حذف</a>
                                            {/if}
                                        </td>
                                        <td>
                                            {if $single->id > 5}
                                            <a  class="btn purple-intense btn-xs hideitem no-print" 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>
                                            {/if}
                                        </td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>

                        </form>

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