<!-- 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 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>تعديل</th>
                                        <th>حذف</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {assign var=i value=1}
                                    {foreach $returnedData as $single}
                                    <tr class="odd gradeX">
                                        <td>
                                            <input type="checkbox" class="checkItem" id="{$i}" name="choosedItem[]" value="{$single->id}" data-extra="{$single->title}" />
                                        </td>
                                        <td>{$single@iteration}</td>
                                        <td>{$single->title}</td>

                                        <td> {$single->date} </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>
                                    {capture assign=i}{$i+1}{/capture}
                                    {/foreach}
                                </tbody>
                            </table>
                        </form>

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